题解列表

筛选

编写题解 3000: 交换值

摘要:解题思路:直接交换输出注意事项:参考代码:int a,b; scanf("%d %d",&a,&b); printf("%d %d",b,a);……

qtnu培训练习

摘要:解题思路:分析p1、p2、p3代表的意思。利用tolower() 于toupper() 函数代码中出现了insert() 增加字符 erase() 删除字符,已及sb测试样例1;p1_other() ……

二进制分类(C语言)

摘要:解题思路:暴力(笑注意事项:数据范围是从1到1000(包括1和1000),并不需要自己输入。参考代码:#include<stdio.h>int main(){ int i, s, A = 0, B =……

编写题解 2819: 数字反转

摘要:解题思路:注意事项:参考代码:#includeusing namespace std;int main(){ int n,m=0; cin>>n; while(n){ m=m*10+n%10;//每……

2778: 判断数正负

摘要:解题思路: while循环控制输入  if条件判断控制范围注意事项:参考代码:while 1:    a = int(input())    if a <= -1E9 or a >= 1E9:   #……

2779: 输出绝对值

摘要:解题思路: 这道题考察的是条件语句的应用注意事项:参考代码:a = float(input())if a >= 0:    print(&#39;{:.2f}&#39;.format(a))  #第一……

2786: 判断能否被3、5、7整除

摘要:解题思路:不用循环,只用条件判断语句注意事项:参考代码:a = int(input())if a % 3 == 0 and a % 5 == 0 and a % 7 == 0:    print(&#……

奇淫巧计-C语言

摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() {     int a,b;     scanf("%d%d",&a,&b);     printf(……

编写题解 1954: 话费计算

摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() {     int a;     double sum = 0;     scanf("%d",&a)……