- 博客(109)
- 资源 (24)
- 收藏
- 关注

原创 Jzoj 条件循环(while,do while) 部分代码(共25题)
1020: 【入门】编程求1+3+5+...+n#include <bits/stdc++.h>using namespace std;int n, sum;int main() { scanf("%d", &n); for(int i=1; i<=n; i+=2){ sum+=i; } printf("%d", sum); return 0;}1012: 【入门】两数比大小#include <bits/stdc++
2021-10-05 20:44:19
2044
1

原创 Jzoj for循环(单重) 部分代码(共42题)
1002: 【入门】编程求解1+2+3+...+n#include <bits/stdc++.h>using namespace std;int n, sum;int main() { scanf("%d", &n); for(int i=1; i<=n; ++i){ sum+=i; } printf("%d", sum); return 0;}1020: 【入门】编程求1+3+5+...+n#include <bi
2021-10-04 12:47:29
3063
1

原创 Jzoj 二维数组部分代码(共13题)
2788: 【入门】二维数组的输入输出边输入边输出#include <bits/stdc++.h>using namespace std;int n, m, a[11][11];int main(){ scanf("%d %d", &n, &m); //边输入边输出 for(int i=1; i<=n; ++i){ for(int j=1; j<=m; ++j){ scanf("%d",
2021-09-04 21:13:01
1793
10

原创 Jzoj 循环嵌套部分代码(共27题)
1102: 【入门】字符图形1-星号矩形#include <bits/stdc++.h>using namespace std;int n;int main(){ scanf("%d", &n); for(int i=1; i<=n; ++i){ for(int j=1; j<=n; ++j){ printf("*"); } printf("\n"); } return 0;}1103: 【入门】字符图形2-星号直角#inc
2021-08-12 19:36:57
2548

原创 Jzoj 字符串部分代码(共21题)
Jzoj 字符串部分题目 传送门1061: 【入门】茵茵的第一课题目传送门#include <bits/stdc++.h>using namespace std;char asd[11];int main(){ scanf("%s", asd); printf("%s", asd); return 0;}2008: 【入门】数字问题题目传送门#include <bits/stdc++.h>using namespace std;c......
2021-07-08 17:17:14
1422
3

原创 Jzoj 一维数组(包括排序)部分代码(共42题)
Jzoj 数组部分题目1117: 【入门】数组逆序2787: 【入门】统计1635: 【入门】输出奇数和偶数1113: 【入门】最大数1125: 【入门】找找谁的身高超过全家的平均身高1118: 【入门】数组元素的查找1135: 【入门】查找支撑数1120: 【入门】数组元素的移动1121: 【入门】数组元素的插入1122: 【入门】数组元素的删除1119: 【入门】元素插入有序数组1138: ......
2021-05-19 20:19:32
6098
原创 挺有趣的题目 比赛名次 谁是凶手 田忌赛马
5位运动员参加了10米台跳水比赛,有人让他们预测比赛结果A选手说:B第二,我第三;B选手说:我第二,E第四;C选手说:我第一,D第二;D选手说:C最后,我第三;E选手说:我第四,A第一:比赛结束后,每位选手都说对了一半,请编程确定比赛的名次。
2024-10-22 17:23:42
285
原创 关于P1077 [NOIP2012 普及组] 摆花和P1757 通天之分组背包的思考
为什么以下这些代码都对?二维,第二层循环升序二维,第二层循环倒序二维,内层循环和第二层循环交换顺序一维,第二层循环倒序,内层循环k从1开始为什么以下这些代码错误?一维,第二层循环倒序,内层循环k从0开始一维,第二层循环升序,内层循环k从1开始一维,k从1开始,j倒序,内层循环和第二层循环交换顺序。
2024-06-26 08:27:02
403
原创 P5682 [CSP-J2019 江西] 次大值% 运算 set 去重的一道好题
【代码】P5682 [CSP-J2019 江西] 次大值% 运算 set 去重的一道好题。
2023-10-16 09:00:43
421
原创 差分约束题目
P3275 [SCOI2011]糖果#include <bits/stdc++.h>using namespace std;const int N=100010, M=300010;#define LL long long int n, k, x, a, b, tot, head[N]; LL dis[N], ans, cnt[N];bool vis[N];queue<int> q;struct node{ int to, dis, nex;}e[M];
2022-04-18 16:22:53
332
3
原创 拓扑排序
P4017 最大食物链计数#include <bits/stdc++.h>using namespace std;int n, m, dp[5010], mod=80112002, rd[5010], cd[5010], tot, head[5010], u, v, ans;queue<int> q;struct node{ int to, nex; }edge[500010];void add_edge(int u, int v){ tot++; edg
2022-04-02 16:53:30
399
原创 信息学竞赛快读
快读inline int read(){ int x=0,f=1;char ch=getchar(); while(ch<'0'||ch>'9'){if (ch=='-') f=-1;ch=getchar();} while(ch>='0'&&ch<='9'){x=x*10+ch-48;ch=getchar();} return x*f;}
2022-03-20 20:51:09
381
原创 最短路部分题目
一、floyed 时间复杂度O(n^2), 空间复杂度O(n^2)P1359 租用游艇#include <bits/stdc++.h>using namespace std;#define INF 10000000int n, g[201][201], dis[201], vis[201];int main(){ cin >> n; //初始化 for(int i=1; i<=n; i++){ for(int j.
2022-03-19 18:31:42
637
原创 并查集题目(路径压缩、扩展域并查集、带权并查集、二维转一维并查集、逆向思维并查集)
P2814 家谱#include <bits/stdc++.h>using namespace std;int len, cnt, father, fa[50010];string s;map<string, int> m;string a[50010];int find(int x){ if(fa[x]==x){ return x; } else return fa[x]=find(fa[x]);}int main(){ while(cin&g
2022-03-17 23:01:32
732
C++实现的汉诺塔小游戏,详情见链接视频 https://v.douyin.com/ik7SPWGR/
2024-05-21
opencv_python-4.5.5-cp310-cp310-win_amd64.whl
2022-01-06
opencv_python-4.5.5-pp38-pypy38_pp73-win_amd64.whl
2022-01-06
opencv_python-4.5.5-cp37-cp37m-win_amd64.whl
2022-01-06
opencv_python-4.5.5.62-cp36-abi3-win_amd64.whl
2022-01-06
opencv_python-4.5.5.62-cp36-abi3-win32.whl
2022-01-06
ffmpeg.zip 一套可以用来记录、转换数字音频、视频,并能将其转化为流的开源计算机程序
2022-01-06
google.tts.jar
2017-09-23
android 通过蓝牙控制Arduino 小车
2014-08-07
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人