题解列表

筛选

简单的a+b (C语言代码)

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){    int a,b;    while(cin>>a>>b)cout……

宏定义之闰年判断

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#pragma warning(disable : 4996)#define LEAP_YEAR(y) (((y) % 4 == 0 ……

[编程入门]实数的打印

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#pragma warning(disable : 4996)#define MAX_OF_THREE(a, b, c) ( (a) ……

1162: 密码(遍历)

摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { int m,cnt = 0; string s, ……

暴力(c语言代码)

摘要:```c #include #include int main() { int n, m; // 用于存储两个数组的大小 scanf("%d %d", &n, &m……

1163: 排队买票()

摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; const int N = 11; long long a[N]; //计算卡特兰……

二级C语言-计算素数和

摘要:解题思路:将m到n的值循环判断,是素数就累加,不是素数舍弃,最后输出即可注意事项:判断不是素数后,要返回一个0参考代码:#include<stdio.h>int isprime(int a){    ……