题解列表

筛选

应该算是比较简单的方法了

摘要:```cpp #include #include using namespace std; //输入三个字符串,按由小到大的顺序输出 int main() { string arr[3……

公式法求解

摘要:解题思路:等差公式前n项和:Sn=na1+n(n-1)d/2=(a1+an)n/2.注意事项:参考代码:n=int(input()) a1,an=2,2+3*(n-1) print(int((a1……

列表储存运算

摘要:解题思路:第一行应付格式注意事项:参考代码:n=input() a=list(map(int,input().split())) b=0 for i in a:     if i%2==0: ……

凑个数。。。。。

摘要:解题思路:。。。。。。。。。。。。。。。注意事项:。。。。。。。。。。。。。。。参考代码:x = float(input()) if x < 1:    y = x elif x >= 1 an……

温度转换,两行

摘要:解题思路:。。。。。。。。。。。。。。。。。注意事项:。。。。。。。。。。。。。。。参考代码:f=int(input()) print(&#39;{:.2f}&#39;.format(5/9*(f-……

字符格式化

摘要:解题思路:。。。。。。。。注意事项:。。。。。。。。。参考代码:n=int(input()) print(format(int(oct(n),8),&#39;o&#39;))……

1739: 成绩排序

摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> struct stu{     char name[101];     int age;……