题解列表

筛选

帅气的题解

摘要:解题思路:sort()函数的调用注意事项:ask()函数的掌握参考代码:while True:    try:#加个try保险        a=list(map(int,input().strip(……

大小写转换

摘要:解题思路:注意事项:EOF不是特殊字符,而是定义在头文件<stdio.h>的常量,通常等于-1,是判断文件是否结束的标志。参考代码:#include<stdio.h>#include<string.h……

简单易懂的宏定义写法

摘要:解题思路:通过利用三目运算法来实现对宏定义的理解注意事项:宏定义的写法和保留的小数位数参考代码:#include<iostream>#include<iomanip>using namespace s……

去掉空格(c语言)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int i; char a[80]; while(gets(a)) { f……

大小写转换

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int i; char a[50]; while(gets(a))  { ……

检查一个数是否为质数

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i; char a; scanf("%d",&n); for(i=2;i<n;i++) { if(……