题解列表

筛选

字符菱形C语言数组,简单排列。

摘要:解题思路:数组,for嵌套循环注意事项:二维数组填写字符需要注意。for嵌套循环就是简单的每行循环。参考代码:#include<stdio.h>int main() { char x = 0;  sc……

1095: The 3n + 1 problem

摘要:解题思路:注意事项:参考代码:#includeint asd(int n){    int a; if (n % 2 == 0) { a = 1; } else { a = 0; } return……

1097: 蛇行矩阵

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int asd(int n){ int sum = 0; for (int i = n; i >=1; i--) { sum = su……

3006: 适合晨练

摘要:解题思路:根据题意得条件即可注意事项:注意条件判断参考代码:#include<stdio.h>int main(){    int t;    scanf("%d",&t);    if(25<=t ……