首页
DreamJudge
院校信息
考研初试
机试真题
讨论区
兑换中心
登录
注册
上岸
Candour
天天原神启动不训练,考研还想上岸?
关注
发消息
文章
0
题解
117
发帖
0
笔记
12
Ta的粉丝
69
关注数
2
粉丝数
69
获赞数
866
阅读数
120020
特殊排序(C++) 题解:
#include<bits/stdc++.h> using namespace std; int n; vector<int> a; int main() { while(cin >> n) { a...
P1400
2024年7月13日 09:59
回复 0
|
赞 5
|
浏览 833
统计同成绩学生人数(C++) 题解:
#include<bits/stdc++.h> using namespace std; unordered_map<int, int> st; int n; int main() { while(cin >> n, n) { ...
P1329
2024年7月8日 14:49
回复 0
|
赞 2
|
浏览 705
字符串内排序(C++) 题解:
#include<bits/stdc++.h> using namespace std; string str; int main() { while(cin >> str) { sort(str.begin(), str.end()...
P1360
2024年6月17日 22:03
回复 0
|
赞 4
|
浏览 902
矩阵翻转 题解:
#include<bits/stdc++.h> using namespace std; const int N = 1010; int a[N][N]; int n; int main() { cin >> n; for(int ...
P1134
2024年6月16日 19:17
回复 0
|
赞 1
|
浏览 858
十进制和二进制(Py秒了,巨坑:多组测试输入题目没说) 题解:
大数问题直接py while True: try: a = int(input()) a = format(a, 'b') b = a[::-1] b = int(b, 2) ...
P1176
2024年6月16日 18:39
回复 0
|
赞 10
|
浏览 2.8k
反序输出 (C++)题解:
#include<bits/stdc++.h> using namespace std; string str; int main() { while(cin >> str) { reverse(str.begin(), str....
P1155
2024年6月11日 22:13
回复 0
|
赞 7
|
浏览 768
身份证校验 (C++ ID Corrent没绷住)题解:
没注意ID Corrent(ID Correct)WA一次 #include<bits/stdc++.h> using namespace std; int v[20] = {7, 9, 10, 5, 8, 4, 2, 1, 6, ...
P1722
2024年6月10日 18:37
回复 0
|
赞 34
|
浏览 2.6k
大整数排序(大数问题用python)题解:
while True: try: N = int(input()) nums = [] for i in range(N): x = int(input()) nums.ap...
P1412
2024年6月9日 17:13
回复 0
|
赞 2
|
浏览 631
斐波那契数列(动态规划,注意数据范围long long附注释) 题解:
从第三项开始 每一项都是前三项的和 #include<bits/stdc++.h> using namespace std; const int N = 110; long long dp[N]; //第n项的值 int n; int mai...
P1111
2024年6月8日 22:56
回复 0
|
赞 15
|
浏览 1.1k
反序相等 (C++)题解:
#include<bits/stdc++.h> using namespace std; bool cheak(int x) { string num = to_string(x); reverse(num.begin(), num.end()); ...
P1461
2024年6月5日 18:56
回复 0
|
赞 5
|
浏览 749
排序 - 华科(C++ 11) 题解:
#include<bits/stdc++.h> using namespace std; int n; int main() { while(cin >> n) { vector<int> res; for(i...
P1399
2024年6月2日 20:32
回复 0
|
赞 2
|
浏览 747
负二进制 题解:
负数取余的规则: |小| % |大| = |小| 符号同前 |大| % |小| = |余| 符号同前 举例: 3%4 = 3 ; -3%4 = -3 ; -3%-4 = -3 ; 3%-4 = 3; 5%3 = 2 ; 5%-3 = 2 ;-5%-3 = -2 ; -5%3 = -2...
P1097
2024年6月1日 20:37
回复 2
|
赞 14
|
浏览 1.1k
吃糖果(和斐波那契数列递推差不多) 题解:
#include<bits/stdc++.h> using namespace std; typedef long long LL; int n; LL dp[30]; int main() { dp[1] = 1, dp[2] = 2; f...
P1197
2024年6月2日 13:23
回复 0
|
赞 3
|
浏览 974
全排列(dfs搜索) 题解:
#include<bits/stdc++.h> using namespace std; string str, res; int n; bool st[10]; void dfs(int u) { if(u >= n) { cout ...
P1185
2024年5月30日 19:26
回复 0
|
赞 8
|
浏览 959
A+B问题 (看数据范围不会爆longlong)题解:
#include<bits/stdc++.h> using namespace std; typedef long long LL; LL a, b; int main() { cin >> a >> b; LL ans...
P1000
2024年4月20日 23:47
回复 1
|
赞 5
|
浏览 1.3k
排序 题解:
#include<bits/stdc++.h> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; fo...
P1010
2024年4月20日 00:12
回复 1
|
赞 3
|
浏览 776
后缀子串排序(C++) 题解:
#include<bits/stdc++.h> using namespace std; string str; int main() { while(cin >> str) { vector<string...
P1294
2024年5月26日 11:03
回复 0
|
赞 2
|
浏览 744
猴子报数(C++模拟) 题解:
#include<bits/stdc++.h> using namespace std; int n, s, m; bool st[110]; int main() { while(cin >> n >> s >> m...
P1081
2024年5月25日 12:31
回复 0
|
赞 4
|
浏览 1.1k
判断是否是整数(C++)题解:
#include<bits/stdc++.h> using namespace std; double n; int main() { while(cin >> n) { if(n - (int)n == 0) cout <<...
P1031
2024年5月24日 18:34
回复 0
|
赞 3
|
浏览 987
百鸡问题(枚举就行了) 题解:
#include<bits/stdc++.h> using namespace std; int n; int main() { while(cin >> n) { for(int i = 0; i <= 100; i ++) ...
P1348
2024年5月23日 00:06
回复 0
|
赞 25
|
浏览 1.2k
1
2
3
4
...
6
本科学校:星穹铁道职业技术学院
目标学校:贵州大学
点此申请N诺身份认证
获得 noobdream 认证,享受多重认证福利!