首页
DreamJudge
院校信息
专业题库
模拟考试
机试真题
上岸课程
兑换中心
登录
注册
上岸
jaygee_
懒懒散散
关注
发消息
文章
0
题解
24
发帖
0
笔记
36
Ta的粉丝
0
关注数
0
粉丝数
0
获赞数
254
阅读数
8251
幂次方 题解:
快速幂+底数化简(字符串转整型) #include<bits/stdc++.h> using namespace std; typedef long long LL; int qmi(LL a, LL k) { int res = 1; a %...
P1017
2025年3月13日 12:17
回复 0
|
赞 5
|
浏览 302
取模运算 题解:
#include<bits/stdc++.h> using namespace std; typedef long long LL; int qmi(LL a, LL k, int p) { int res = 1; a = a % p; //...
P5133
2025年3月12日 23:33
回复 0
|
赞 9
|
浏览 289
字母频率 题解:
#include<bits/stdc++.h> using namespace std; int main() { string s; getline(cin, s); map<char, int> map; for(char c : ...
P1019
2025年3月12日 20:33
回复 0
|
赞 2
|
浏览 263
水仙花数 题解:
#include<bits/stdc++.h> using namespace std; int main() { int m, n; while(cin >> m >> n) { if(m == 0 && n ==...
P1034
2025年3月12日 17:41
回复 0
|
赞 17
|
浏览 454
击鼓传花 题解:
#include<bits/stdc++.h> using namespace std; int main() { int n; cin >> n; vector<int> a(n); for(int i = 0; i < ...
P1018
2025年3月11日 20:44
回复 0
|
赞 0
|
浏览 188
成绩排序 题解:
#include <bits/stdc++.h> using namespace std; struct node { string name; int score; }; bool cmp_desc(node a, node b) { ...
P1151
2025年3月10日 07:44
回复 0
|
赞 10
|
浏览 341
字母统计 题解:
熟用map并记住字符也可遍历 #include <bits/stdc++.h> using namespace std; int main() { string s; map<char, int> map; while(getline(...
P1292
2025年3月9日 21:12
回复 0
|
赞 7
|
浏览 205
查找第K小数 题解:
set去重+sort排序最省心的一集 #include <bits/stdc++.h> using namespace std; int main() { int n; while (cin >> n) { ...
P1383
2025年3月9日 20:58
回复 0
|
赞 9
|
浏览 274
素数 题解:
利用标记变量选择素数或-1的输出 #include <bits/stdc++.h> using namespace std; bool isPrime(int n) { if(n == 1) return false; for(int i = ...
P1375
2025年3月8日 23:20
回复 0
|
赞 2
|
浏览 229
旋转方阵 题解:
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; // 输入方阵的大小 vector<vector<int>> m...
P1216
2025年3月1日 13:40
回复 3
|
赞 54
|
浏览 965
集合中的相同元素 题解:
#include<bits/stdc++.h> using namespace std; int main() { int n; cin >> n; vector<int> a(n), b(n); ...
P5105
2025年3月7日 12:53
回复 0
|
赞 2
|
浏览 160
细菌繁殖问题 题解:
模拟N诺在b站讲的第三节画图规律 #include<bits/stdc++.h> using namespace std; int main() { int n; cin >> n; for(int i = 1; i &l...
P5126
2025年3月7日 08:44
回复 0
|
赞 2
|
浏览 229
二进制数 题解:
使用string库函数 #include<bits/stdc++.h> using namespace std; int a[105]; int main() { int n; string s; while(cin >> n) { ...
P1380
2025年3月6日 23:37
回复 0
|
赞 4
|
浏览 226
0和1的个数 题解:
#include<bits/stdc++.h> using namespace std; int main() { int n, num0 = 0, num1 = 0; cin >> n; bitset<32> b(n); // 数...
P1008
2025年3月6日 18:56
回复 0
|
赞 0
|
浏览 244
首字母大写 题解:
求助!!!PE了,AC60%哪里还需要改进 #include<bits/stdc++.h> using namespace std; int main() { vector<string> words; string s; ...
P1240
2025年3月6日 18:26
回复 0
|
赞 1
|
浏览 301
进制转换2 题解:
#include<bits/stdc++.h> using namespace std; int main() { string s; while(cin >> s) { cout << stoi(s, nullp...
P1259
2025年3月6日 14:28
回复 0
|
赞 7
|
浏览 329
01序列 题解:
#include<bits/stdc++.h> using namespace std; int main() { for (int i = 0; i < 64; i++) { cout << bitset<6>...
P1001
2025年3月6日 13:46
回复 0
|
赞 2
|
浏览 172
判断素数 题解:
#include<bits/stdc++.h> using namespace std; bool isPrime(int n) { if (n < 2) return false; for (int i = 2; i <= sqrt(n...
P1013
2025年3月6日 09:17
回复 0
|
赞 17
|
浏览 348
排序 题解:
快速排序改比较方式 #include <bits/stdc++.h> using namespace std; const int N = 100005; int a[N]; bool cmp(int x, int y) { // 奇数在前,偶数...
P1010
2025年3月3日 09:13
回复 0
|
赞 11
|
浏览 360
快速排序 - 西工大 题解:
#include <bits/stdc++.h> using namespace std; const int N = 100005; int a[N]; void quickSort(int l, int r) { if(l >= r) return...
P1716
2025年3月3日 07:28
回复 0
|
赞 2
|
浏览 236
1
2
本科学校:内蒙古科技大学
目标学校:长春理工大学
点此申请N诺身份认证
获得 noobdream 认证,享受多重认证福利!