题解列表

筛选

2788普普通通的解题方法

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

2790-普普通通的解题方法

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ float x,y; scanf("%f",&x); if ( 0 <= x && x < 5) y=-x+2……

2792-普普通通的解题方法

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

1480-普普通通的解题方法

摘要:解题思路:注意事项:用scanf写输入格式时,如果只想写一行,注意两个%d之后加一个空格再接%c。参考代码:#include<stdio.h>int ch(char c){ if (c == &#39……

2000-普普通通的解题方法

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