首页
DreamJudge
院校信息
考研初试
机试真题
讨论区
兑换中心
登录
注册
上岸
Candour
天天原神启动不训练,考研还想上岸?
关注
发消息
文章
0
题解
117
发帖
0
笔记
12
Ta的粉丝
69
关注数
2
粉丝数
69
获赞数
866
阅读数
120094
素数 (试除法 O(m * n * sqrt(n)))题解:
100 * 10000 * 100 = 1e8 勉强能过, 如果输入的数据大于100组就过不了了,就得用线性筛(C/C++ 1s能处理1e7 - 1e8的规模) #include<bits/stdc++.h> using namespace std; int...
P1375
2024年4月26日 23:28
回复 0
|
赞 2
|
浏览 679
字符棱形 (找规律)题解:
#include <bits/stdc++.h> using namespace std; int n; int main() { cin >> n; int t = n, cnt = 1; //打印n行,上半 while(t...
P1473
2024年4月26日 23:13
回复 0
|
赞 10
|
浏览 1.2k
查找学生信息 (多组测试输入)题解:
多组测试输入受不了了,害我WA好几次 #include<bits/stdc++.h> using namespace std; const int N = 210; int n, m; int a[N]; int cnt[N]; int m...
P1177
2024年4月25日 18:06
回复 0
|
赞 3
|
浏览 1.0k
查找第K小数(C++) 题解:
#include<bits/stdc++.h> using namespace std; const int N = 1010; int n, k, cnt; int a[N]; set<int> res; int main() { ...
P1383
2024年4月25日 17:08
回复 0
|
赞 5
|
浏览 1.3k
杨辉三角形 (模拟)题解:
#include <bits/stdc++.h> using namespace std; const int N = 30; int n; int res[N][N]; void get_triangle() { for(int i = 1; i &l...
P1062
2024年4月25日 00:43
回复 0
|
赞 3
|
浏览 767
成绩排序 (结构体数组)题解:
#include<bits/stdc++.h> using namespace std; const int N = 1e5 + 10; int n, m; struct st{ string name; int sum; int id...
P1151
2024年4月25日 00:28
回复 0
|
赞 5
|
浏览 875
二进制数 (C++ 位运算)题解:
#include <bits/stdc++.h> using namespace std; int x; string res; int main() { cin >> x; while(x) { res.push_back...
P1380
2024年4月24日 00:40
回复 0
|
赞 2
|
浏览 643
翻转数的和 题解:
#include <bits/stdc++.h> using namespace std; typedef long long LL; LL a, b; LL ans; int main() { while(cin >> a >> ...
P1003
2024年4月24日 00:34
回复 0
|
赞 9
|
浏览 1.3k
首字母大写 题解:
#include <bits/stdc++.h> using namespace std; int main() { string str; getline(cin, str); for(int i = 0; i < st...
P1240
2024年4月23日 00:55
回复 0
|
赞 7
|
浏览 1.1k
进制转换2 (C&&C++ 最简短代码思路清晰)题解:
格式化输入和输出 #include<bits/stdc++.h> using namespace std; int main() { int x; while(~scanf("%x", &x)) { ...
P1259
2024年4月23日 00:21
回复 0
|
赞 3
|
浏览 1.0k
促销计算 题解:
#include<bits/stdc++.h> using namespace std; float x, d, p; int main() { while(cin >> x) { d = 1, p = x; if(x >=...
P1091
2024年4月22日 22:09
回复 0
|
赞 6
|
浏览 1.0k
利润提成 题解:
#include<bits/stdc++.h> using namespace std; typedef long long LL; const int N = 1e5; LL x, ans; int main() { cin >> x; ...
P1040
2024年4月22日 18:14
回复 0
|
赞 3
|
浏览 849
反序数 (C++ 模拟)题解:
#include<bits/stdc++.h> using namespace std; int main() { for(int i = 1000; i <= 9999; i ++) { int t = i * 9; ...
P1454
2024年4月22日 00:15
回复 0
|
赞 5
|
浏览 1.1k
01序列 (二进制枚举)题解:
经过分析,只需要枚举0到64的二进制数即可 #include<bits/stdc++.h> using namespace std; int res; //全局变量系统初始化为0 int main() { printf("%06d\n", ...
P1001
2024年4月21日 17:24
回复 0
|
赞 5
|
浏览 1.3k
求1到n的和 (等差数列)题解:
#include<bits/stdc++.h> using namespace std; typedef long long LL; int n; LL ans; int main() { cin >> n; ans = n * (...
P1133
2024年4月21日 00:02
回复 0
|
赞 3
|
浏览 800
计算Sn (模拟,注意数据范围)题解:
#include<bits/stdc++.h> using namespace std; typedef long long LL; int x, n; LL ans; int main() { cin >> x >> n; ...
P1043
2024年4月20日 23:58
回复 0
|
赞 6
|
浏览 1.0k
二元组整数 (搜索和C++ set)题解:
C++ set去重: #include<bits/stdc++.h> using namespace std; typedef pair<int, int> PII; const int N = 30; set<PII> res; i...
P1024
2024年4月20日 23:34
回复 0
|
赞 16
|
浏览 996
最长连续因子(贪心) 题解:
#include<bits/stdc++.h> using namespace std; int n; bool cheak(int x) { if(n % x == 0) return true; return false; ...
P1020
2024年4月20日 22:11
回复 0
|
赞 35
|
浏览 1.5k
随机数 题解:
#include<bits/stdc++.h> using namespace std; int main() { cout << 210; return 0; }
P1009
2024年4月20日 20:28
回复 0
|
赞 5
|
浏览 1.6k
单链表 题解:
#include<bits/stdc++.h> using namespace std; int a[5]; int main() { for(int i = 0; i < 5; i ++) cin >> a[i]; so...
P1015
2024年4月20日 19:33
回复 0
|
赞 3
|
浏览 1.1k
1
...
3
4
5
6
本科学校:星穹铁道职业技术学院
目标学校:贵州大学
点此申请N诺身份认证
获得 noobdream 认证,享受多重认证福利!