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 评论 531 浏览 评分: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 评论 502 浏览 评分: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 评论 442 浏览 评分:9.9
最长最短单词(C++代码解析) 摘要:代码解析:引入了必要的头文件,包括iostream、string和sstream和vector头文件用于使用向量容器。接下来,定义了一个getWords函数,该函数接受一个字符串sentence作为参…… 题解列表 2023年07月16日 0 点赞 0 评论 638 浏览 评分:9.9
1099: 校门外的树(简单c++) 摘要:解题思路:1.#include <bits/stdc++.h> using namespace std; long long a[100000];//创造数组 int main() { …… 题解列表 2023年07月16日 0 点赞 0 评论 201 浏览 评分:9.9
单词替换(优解) 摘要:解题思路:看下面↓注意事项:借鉴用,不要盲目的抄参考代码:#include<iostream>#include<cstring>using namespace std;int main(){ in…… 题解列表 2023年07月16日 0 点赞 0 评论 505 浏览 评分:9.9
信息学奥赛一本通T1307-高精度乘法c++ 摘要:解题思路:看下面↓注意事项:多注意注意参考代码:#include<bits/stdc++.h>using namespace std;const int N=2e+3+10;int x[N]={0},…… 题解列表 2023年07月16日 0 点赞 0 评论 661 浏览 评分:9.9
1013: [编程入门]Sn的公式求和 摘要:参考代码:#include <bits/stdc++.h>using namespace std;int n,ans = 2,s;int main(){ cin>>n; for(int i…… 题解列表 2023年07月16日 0 点赞 0 评论 272 浏览 评分:9.9
2903: 不高兴的津津 摘要:参考代码:#include <bits/stdc++.h>using namespace std;int a,b,c,maxday = 0,maxtime = 0;int main(){ for…… 题解列表 2023年07月16日 0 点赞 0 评论 272 浏览 评分:9.9
密码翻译(C++)简单实用 摘要:参考代码:#include <iostream>#include <string>using namespace std;string encrypt(const string& str) { …… 题解列表 2023年07月16日 0 点赞 0 评论 347 浏览 评分:9.9