主站
DreamJudge
院校信息
专业题库
模拟考试
机试真题
专业课程
讨论区
兑换中心
登录
注册
上岸
搜索
推 荐
择校分析
笔经面经
学习交流
我要提问
站内公告
调剂专题
精彩爆料
解题报告
P1081
猴子报数 题解:自用笔记,数组实现
拉萨小队长
VIP
回复 0
|
赞 0
|
浏览 11
#include<bits/stdc++.h> using namespace std; int n,m; // 总共n个人,...
P1185
全排列 题解:DFS自用笔记,带详细注释
拉萨小队长
VIP
回复 0
|
赞 0
|
浏览 7
#include<bits/stdc++.h> using namespace std; int card[100]; // 标记手里的字符:0表示此字符还在手里,1表示此字符已出 char res[100];  ...
P1034
水仙花数 题解:
我能走到对岸吗
回复 0
|
赞 1
|
浏览 13
#include <bits/stdc++.h> using namespace std; int n, m; bool cheak(int x) { int a = x / 100; int b = (x / 10) % 10; int c = x...
P1177
查找学生信息 (多组测试输入)题解:
我能走到对岸吗
回复 0
|
赞 1
|
浏览 28
多组测试输入受不了了,害我WA好几次 #include<bits/stdc++.h> using namespace std; const int N = 210; int n, m; int a[N]; int cnt[N]; int m...
P1383
查找第K小数(C++) 题解:
我能走到对岸吗
回复 0
|
赞 1
|
浏览 25
#include<bits/stdc++.h> using namespace std; const int N = 1010; int n, k, cnt; int a[N]; set<int> res; int main() { ...
P1022
删除最大最小数 题解:原数组与辅助数组比较,秒解!
拉萨小队长
VIP
回复 0
|
赞 0
|
浏览 14
#include<bits/stdc++.h> using namespace std; int main(){ int n,a[100]={0},b[100]={0}; cin>>n; ...
P1062
杨辉三角形 (模拟)题解:
我能走到对岸吗
回复 0
|
赞 1
|
浏览 20
#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...
P1151
成绩排序 (结构体数组)题解:
我能走到对岸吗
回复 0
|
赞 1
|
浏览 24
#include<bits/stdc++.h> using namespace std; const int N = 1e5 + 10; int n, m; struct st{ string name; int sum; int id...
P1217
国名排序 题解:sort()函数,秒杀
拉萨小队长
VIP
回复 0
|
赞 0
|
浏览 11
#include<bits/stdc++.h> using namespace std; int main(){ int n;cin>>n; string s[100]; ...
P1888
倒杨辉三角 题解:得使用long long类型,不然会出错
拉萨小队长
VIP
回复 0
|
赞 0
|
浏览 9
#include<bits/stdc++.h> using namespace std; int main(){ long long n,a[100][100]={0}; while(cin>>n){ ...
P1026
删除字符串 题解:老老实实,做子串匹配!
拉萨小队长
VIP
回复 0
|
赞 0
|
浏览 27
#include<bits/stdc++.h> using namespace std; int main(){ char s[100]; gets(s); int len=strle...
P1383
查找第K小数 题解:sort()函数+unique()函数,秒杀!
拉萨小队长
VIP
回复 0
|
赞 0
|
浏览 28
#include<bits/stdc++.h> using namespace std; int main(){ int n, k, a[100]; cin>>n; for...
P1380
二进制数 (C++ 位运算)题解:
我能走到对岸吗
回复 0
|
赞 1
|
浏览 23
#include <bits/stdc++.h> using namespace std; int x; string res; int main() { cin >> x; while(x) { res.push_back...
P1003
翻转数的和 题解:
我能走到对岸吗
回复 0
|
赞 1
|
浏览 29
#include <bits/stdc++.h> using namespace std; typedef long long LL; LL a, b; LL ans; int main() { while(cin >> a >> ...
P1001
01序列 题解:bitset()函数,秒杀!
拉萨小队长
VIP
回复 0
|
赞 0
|
浏览 42
#include<bits/stdc++.h> using namespace std; int main(){ for(int i=0;i<64;i++) ...
P1664
中南 - 最大连续子序列 题解:
藕糖
回复 0
|
赞 0
|
浏览 16
#include <iostream> #include <vector> using namespace std; int main() { int K; while (cin >> K) { if ...
P1029
骨牌铺方格 题解:
藕糖
回复 0
|
赞 0
|
浏览 30
#include <iostream> #include <vector> using namespace std; int main(void){ int n; while(cin&...
P1172
最大序列和 题解:
藕糖
回复 0
|
赞 0
|
浏览 29
#include <iostream> using namespace std; void dpList() { // 更改为 void 类型,因为没有返回值 int n; while (cin >...
P1240
首字母大写 题解:
我能走到对岸吗
回复 0
|
赞 1
|
浏览 67
#include <bits/stdc++.h> using namespace std; int main() { string str; getline(cin, str); for(int i = 0; i < st...
P1259
进制转换2 (C&&C++ 最简短代码思路清晰)题解:
我能走到对岸吗
回复 0
|
赞 1
|
浏览 56
#include<bits/stdc++.h> using namespace std; int main() { int x; while(~scanf("%x", &x)) { printf("%d...
P1091
促销计算 题解:
我能走到对岸吗
回复 0
|
赞 1
|
浏览 47
#include<bits/stdc++.h> using namespace std; float x, d, p; int main() { while(cin >> x) { d = 1, p = x; if(x >=...
P1040
利润提成 题解:
我能走到对岸吗
回复 0
|
赞 1
|
浏览 43
#include<bits/stdc++.h> using namespace std; typedef long long LL; const int N = 1e5; LL x, ans; int main() { cin >> x; ...
P1454
反序数 (C++ 模拟)题解:
我能走到对岸吗
回复 0
|
赞 1
|
浏览 62
#include<bits/stdc++.h> using namespace std; int main() { for(int i = 1000; i <= 9999; i ++) { int t = i * 9; ...
P1035
简单背包问题 题解:
藕糖
回复 0
|
赞 0
|
浏览 67
代码: #include <iostream> #include <vector> using namespace std; bool canAchieveSum(const vector<int>& weights, int s...
P1569
完全背包问题 题解:
藕糖
回复 1
|
赞 0
|
浏览 106
代码: #include <iostream> #include <vector> #include <algorithm> using namespace std; int main() { int n, W; ...
P1001
01序列 (二进制枚举)题解:
我能走到对岸吗
回复 0
|
赞 1
|
浏览 94
经过分析,只需要枚举0到64的二进制数即可 #include<bits/stdc++.h> using namespace std; int res; //全局变量系统初始化为0 int main() { printf("%06d\n", ...
P1312
畅通工程 题解:
qingjuz
回复 0
|
赞 0
|
浏览 60
#include <iostream> #include <cstring> #include <algorithm> using namespace std; const int N = 110, M = 110, INF = 0x3f3f...
P1240
首字母大写 题解:
AJXGY
回复 0
|
赞 0
|
浏览 76
#include<bits/stdc++.h> using namespace std; int main() { string a; getline(cin,a);  ...
P1240
首字母大写 题解:
AJXGY
回复 0
|
赞 0
|
浏览 44
#include<bits/stdc++.h> using namespace std; int main() { string a; getline(cin,a);  ...
P1133
求1到n的和 (等差数列)题解:
我能走到对岸吗
回复 0
|
赞 1
|
浏览 32
#include<bits/stdc++.h> using namespace std; typedef long long LL; int n; LL ans; int main() { cin >> n; ans = n * (...
1
2
3
...
126
我要提问
近期热门
1
N诺成就值出炉,帮你一眼识别大神
2
机试如何才能快速提高?
3
[置顶]计算机考研择校分析【25考研必读】
4
广度优先搜索计算每个人移动到每个位置需要去掉障碍物的最少数目,最后求和的最小值
5
1377旋转矩阵
6
ip地址(C)
7
简单易懂
8
C++递归解法,有注释
9
1017 幂次方 快速幂模板
10
计算机考研复试笔记——操作系统篇