题解列表

筛选

程序员的表白

摘要:解题思路:找规律暴力输出即可注意事项:参考代码:#include<stdio.h>int main(){ int n; while(~(scanf("%d",&n))){     for(int i=……

题解 1388: GC的苦恼

摘要:解题思路:也是使用字符数组来实现的,这里还用到了pow函数和strlen函数注意事项:参考代码:#include<stdio.h>#include<string.h>#include<math.h>i……

陈教主的三角形

摘要:解题思路:任意两边之和大于第三边即可注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c; while( ~(scanf("%d %d %d",&a,&b……

妹子杀手的故事

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

题解 1118: Tom数

摘要:解题思路:使用 int的话只能对一半,使用数组来存取数才可以存下去很大的数注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){   ch……

题解 1116: IP判断

摘要:解题思路:巧用scanf函数的返回值来实现循环注意事项:取反是当返回值为-1的时候取反为1,循环结束参考代码:#include<stdio.h>int main(){ int a,b,c,d,k; c……