主站
DreamJudge
院校信息
专业题库
模拟考试
机试真题
上岸课程
讨论区
兑换中心
登录
注册
上岸
jaygee_
懒懒散散
关注
发消息
文章
0
题解
19
发帖
0
笔记
6
Ta的粉丝
0
关注数
0
粉丝数
0
获赞数
124
阅读数
2905
成绩排序 题解:
#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
|
赞 2
|
浏览 36
字母统计 题解:
熟用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
|
赞 3
|
浏览 26
查找第K小数 题解:
set去重+sort排序最省心的一集 #include <bits/stdc++.h> using namespace std; int main() { int n; while (cin >> n) { ...
P1383
2025年3月9日 20:58
回复 0
|
赞 2
|
浏览 49
素数 题解:
利用标记变量选择素数或-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
|
浏览 45
旋转方阵 题解:
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; // 输入方阵的大小 vector<vector<int>> m...
P1216
2025年3月1日 13:40
回复 3
|
赞 34
|
浏览 667
集合中的相同元素 题解:
#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
|
赞 1
|
浏览 20
细菌繁殖问题 题解:
模拟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
|
赞 0
|
浏览 24
二进制数 题解:
使用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
|
赞 2
|
浏览 55
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
|
浏览 123
首字母大写 题解:
求助!!!PE了,AC60%哪里还需要改进 #include<bits/stdc++.h> using namespace std; int main() { vector<string> words; string s; ...
P1240
2025年3月6日 18:26
回复 0
|
赞 1
|
浏览 112
进制转换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
|
赞 5
|
浏览 134
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
|
浏览 55
判断素数 题解:
#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
|
赞 5
|
浏览 87
排序 题解:
快速排序改比较方式 #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
|
赞 4
|
浏览 183
快速排序 - 西工大 题解:
#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
|
赞 1
|
浏览 87
日期差值 题解:
差值=日期2是这一年的第几天+日期1年初到日期2年初的天数-日期1是这一年的第几天+1 #include <bits/stdc++.h> using namespace std; int month[15] = {0 ,31, 28, 31, 30, 31, 30...
P1290
2025年3月1日 22:42
回复 0
|
赞 19
|
浏览 333
日期 题解:
#include <bits/stdc++.h> using namespace std; int month[15] = {0, 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; string weeks[10] = ...
P1011
2025年3月1日 20:45
回复 0
|
赞 31
|
浏览 348
日期计算 题解:
#include <bits/stdc++.h> using namespace std; int month[15] = {0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; int rmonth[15] = {0...
P1051
2025年3月1日 20:43
回复 0
|
赞 6
|
浏览 223
单词翻转 题解:
#include <bits/stdc++.h> using namespace std; int main() { string s; getline(cin, s); vector<string> words; ...
P3666
2025年2月28日 10:11
回复 0
|
赞 4
|
浏览 298
本科学校:内蒙古科技大学
目标学校:长春理工大学
点此申请N诺身份认证
获得 noobdream 认证,享受多重认证福利!