树状数组求解-求逆序对 摘要:```cpp #include #include using namespace std; #define lowbit(x) ((x) & -(x)) const int N=1e5+5;…… 题解列表 2022年01月14日 0 点赞 0 评论 824 浏览 评分:6.0
简单易懂的递归倒置字符数组 摘要:#include #include #include using namespace std; int n; string s; void swapalpha(int r,int l) {…… 题解列表 2022年01月16日 0 点赞 0 评论 420 浏览 评分:6.0
[编程入门]三个数的最大值python 摘要:解题思路:注意事项:参考代码:a,b,c = map(int,input(),split) print(max(a,b,c))…… 题解列表 2022年01月16日 0 点赞 0 评论 608 浏览 评分:6.0
[编程入门]温度转换 摘要:解题思路:注意事项:参考代码:f = float(input())c = 5*(f-32)/9print('c=%.2f'%c)…… 题解列表 2022年01月17日 0 点赞 0 评论 576 浏览 评分:6.0
[编程入门]分段函数求值python 摘要:解题思路:注意事项:参考代码:x = int(input())if x < 1: y = xelif 1 <= x < 10: y = 2*x - 1elif x >= 10: y …… 题解列表 2022年01月17日 0 点赞 0 评论 600 浏览 评分:6.0
[编程入门]成绩评定python 摘要:解题思路:注意事项:参考代码:n = int(input())m = ''if n < 60: m = 'E'elif n < 70: m = 'D…… 题解列表 2022年01月17日 0 点赞 0 评论 505 浏览 评分:6.0
[编程入门]数字的处理与判断python 摘要:解题思路:注意事项:参考代码:number = input()a = str(number) #将输入的数转化为字符串形式print(len(a)) #转化后…… 题解列表 2022年01月17日 0 点赞 0 评论 343 浏览 评分:6.0
Cylinder题解,简单清晰 摘要:解题思路:注意事项:参考代码:from math import *w,h=map(float,input().split())while w: v=[] r=h/(pi+1)/2 i…… 题解列表 2022年01月19日 0 点赞 0 评论 536 浏览 评分:6.0
1023: [编程入门]选择排序 摘要:解题思路: 这里使用了冒泡排序,将最大的数放到后面,再逐渐范围比较注意事项:参考代码:public static void main(String[] args) {// …… 题解列表 2022年01月20日 0 点赞 1 评论 270 浏览 评分:6.0
1005: [编程入门]温度转换(python解) 摘要:解题思路:先输入浮点型数据a代表华氏温度,然后通过计算获得b摄氏温度,然后输出b并保存两位小数注意事项:'\'代表不换行(只是提供一种做题方法,欢迎大家一起来讨论)参考代码:a=flo…… 题解列表 2022年01月22日 0 点赞 0 评论 798 浏览 评分:6.0