题解列表

筛选

c语言代码解决问题

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){    char str1[101], str2[101];    scanf……

c语言代码解决问题

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

分离整数的各个数位

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

素数判断--开方小于num

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int isPrime(int num) {    if (num <= 1) {        return 0;    }    ……

药房管理c++

摘要:解题思路:注意事项:参考代码:#includeusing namespace std;int main(){    int m, n, need;    int sum = 0;//记录已经拿到药的人……

fgets解决问题

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main() {    char str[100];    int i;        fg……

正常血压c++

摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){    int n, x, y,sum=0,max=0;    cin……

1036题: 带参数宏定义练习

摘要:# 代码难点 对于宏定义,自己有点印象,但是不会运用,直接参考了答案,希望之后的代码可以照猫画虎 # 参考代码 ```c #include #include #define chang……

[STL训练]周瑜的反间计

摘要:解题思路:利用寻找数组注意事项:用find,防止没有找到数字一直输出no参考代码:#include <stdio.h>int main() { int j,find,a,n,arr[1000]; lo……