题解列表

筛选

[编程入门]自定义函数之数字后移

摘要:扩充挪到前面的代码先输出,没动的代码先输出,但是内存可能不够参考代码: #include<stdio.h>int a[100000];int main(){    int n,m;    scanf(……

普普通通的解题方法

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main (){ int n, j, a[1001],l; scanf("%d",&n); for ( j = 1; j ……

2000-普普通通的解题方法

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

1480-普普通通的解题方法

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

2792-普普通通的解题方法

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

2790-普普通通的解题方法

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