年龄与疾病(C++代码) 摘要:参考代码:#include <iostream>#include <iomanip>using namespace std;int main() { int n; cin >> n; …… 题解列表 2023年07月14日 0 点赞 0 评论 607 浏览 评分:9.9
计算邮费问题 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a; char c; scanf("%d %c",&a,&c); if(a<=…… 题解列表 2023年07月14日 0 点赞 0 评论 450 浏览 评分:9.9
[编程入门]字符串分类统计 摘要:参考代码:#include<stdio.h>#include<string.h>#include<ctype.h>int main(){ char str[200]; int len,le…… 题解列表 2023年07月15日 0 点赞 0 评论 479 浏览 评分:9.9
2的N次方,数组版 摘要:解题思路:思考之前所学的高精度乘法,将每一位都乘2,在进行进位的处理主要代码:void cif(int a[]){//进行乘2 for(int i=0;i<lena;i++){//先将每一位都乘2…… 题解列表 2023年07月15日 0 点赞 1 评论 727 浏览 评分:9.9
2832: 第n小的质数 摘要:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int n,sum=0; cin>>n; for(int i…… 题解列表 2023年07月15日 1 点赞 3 评论 308 浏览 评分:9.9
2832: 第n小的质数2 摘要:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int n,sum=0; cin>>n; for(int i…… 题解列表 2023年07月15日 0 点赞 0 评论 649 浏览 评分:9.9
2518: 信息学奥赛一本通T1620-质因数分解 摘要:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int n; cin>>n; for(int i=2;i <…… 题解列表 2023年07月15日 0 点赞 0 评论 624 浏览 评分:9.9
C语言解八皇后问题 摘要:解题思路:递归+回溯注意事项:注意输出,输出是行列号不是下标参考代码:#include <stdio.h>int place[13];int flag[13]={1,1,1,1,1,1,1,1,1,1…… 题解列表 2023年07月15日 0 点赞 0 评论 595 浏览 评分:9.9
最长最短单词(C++代码解析) 摘要:代码解析:引入了必要的头文件,包括iostream、string和sstream和vector头文件用于使用向量容器。接下来,定义了一个getWords函数,该函数接受一个字符串sentence作为参…… 题解列表 2023年07月16日 0 点赞 0 评论 840 浏览 评分:9.9
1099: 校门外的树(简单c++) 摘要:解题思路:1.#include <bits/stdc++.h> using namespace std; long long a[100000];//创造数组 int main() { …… 题解列表 2023年07月16日 0 点赞 0 评论 430 浏览 评分:9.9