首页
DreamJudge
院校信息
专业题库
模拟考试
机试真题
上岸课程
兑换中心
登录
注册
上岸
RingoCrystal
我是菜逼
关注
发消息
文章
0
题解
166
发帖
0
笔记
49
Ta的粉丝
68
关注数
0
粉丝数
68
获赞数
855
阅读数
61603
疯狂的小面包 题解:优先步行
#include <bits/stdc++.h> using namespace std; int main() { double d,x,y,t; while(cin>>d>>x>>y>>t)...
P1128
2025年2月11日 17:02
回复 0
|
赞 3
|
浏览 363
树查找 题解:数学解
#include <bits/stdc++.h> using namespace std; int getPos(int h){ return (1 << (h-1)) - 1; // 2^(h-1) - 1 } int main() ...
P1386
2025年2月11日 16:49
回复 0
|
赞 2
|
浏览 304
单词替换 题解:单个用例,分别测试,可以采用特殊读取法
#include <bits/stdc++.h> using namespace std; int main() { vector<string> a; string s; while(cin>>s){ ...
P1196
2025年2月11日 16:22
回复 0
|
赞 1
|
浏览 242
完全背包问题 题解:二维dp,简单易懂
#include <bits/stdc++.h> using namespace std; int main() { int n,w; while(cin>>n>>w){ vector<vector...
P1569
2025年2月11日 16:14
回复 0
|
赞 10
|
浏览 365
a与b得到c 题解:如果你代码过不去,请别忘了,这是int
#include <bits/stdc++.h> using namespace std; int main() { int a, b, c; while (cin >> a >> b >> c) { ...
P1821
2025年2月11日 15:43
回复 0
|
赞 4
|
浏览 332
最大素因子 题解:素数筛选法,快速得到素因子
#include <bits/stdc++.h> using namespace std; int stringToInt(string s){ int ans=0; for(auto x:s){ if(isdigit(x)){...
P1464
2025年2月11日 13:23
回复 0
|
赞 13
|
浏览 433
复数集合 题解:priority_queue
#include <bits/stdc++.h> using namespace std; struct pl { int a, b; pl(int a, int b): a(a), b(b) {} bool operator <...
P1381
2025年2月11日 13:15
回复 0
|
赞 4
|
浏览 299
发财数 题解:素数筛加搜索法
#include <bits/stdc++.h> using namespace std; int main() { // 筛法求素数 vector<int> a(10001), b; for (int i = 2; i <...
P1489
2025年2月11日 11:54
回复 0
|
赞 8
|
浏览 368
整数拆分 题解:数学dp解法
#include <bits/stdc++.h> using namespace std; const int p=1000000000; int main() { std::vector<int> a(1000001); a[1]...
P1158
2025年2月11日 10:53
回复 0
|
赞 11
|
浏览 370
爬楼梯游戏 题解:为了防止爆内存,我们事先准备好数组
#include <bits/stdc++.h> using namespace std; const int p=1e9+7; int main() { std::vector<int> a(1000001); a[1]=1,a[...
P1685
2025年2月11日 10:41
回复 0
|
赞 11
|
浏览 388
奥运排序问题 题解:代码巨大化,各种情况难以统一美化
#include <bits/stdc++.h> using namespace std; struct medals { int golds, all_medals, people; medals(int golds, int all_medals...
P1310
2025年2月11日 10:28
回复 0
|
赞 6
|
浏览 465
阶乘问题 题解:效率极高的解法
#include <bits/stdc++.h> using namespace std; int main() { int n; while (cin >> n) { int ans = 1; int...
P1059
2025年2月10日 15:34
回复 0
|
赞 3
|
浏览 330
成绩再次排序 题解:别忘了还有个序号
#include <bits/stdc++.h> using namespace std; struct Score{ string name; int id; int chinese,math,english; Score(...
P1817
2025年2月10日 14:49
回复 0
|
赞 1
|
浏览 344
众数 - 清华 题解:每个数的位数都是一样的
#include <bits/stdc++.h> using namespace std; int main() { int n, m; while (cin >> n >> m) { std::vect...
P1534
2025年2月10日 14:37
回复 0
|
赞 0
|
浏览 277
数字模式的识别 题解:必须用unordered_map,否则超时
#include <bits/stdc++.h> using namespace std; int main() { int n; while(cin>>n){ map<int,int>a; while(n--){...
P1057
2025年2月10日 14:09
回复 0
|
赞 0
|
浏览 271
距阵相乘 题解:数学推演
#include <bits/stdc++.h> using namespace std; int main() { std::vector<vector<int>> a(3,vector<int>(3)),b(3,vector&...
P1055
2025年2月10日 14:00
回复 0
|
赞 1
|
浏览 419
递推数列 题解:dp
#include <bits/stdc++.h> using namespace std; int main() { int a0,a1,p,q,k; while(cin>>a0>>a1>>p>>q>>...
P1171
2025年2月10日 11:06
回复 0
|
赞 7
|
浏览 318
球的半径和体积 题解:这题通过率低的离谱
#include <bits/stdc++.h> using namespace std; int main() { double a,b,c,x,y,z; while(cin>>a>>b>>c>>x&...
P1160
2025年2月9日 11:03
回复 0
|
赞 2
|
浏览 299
十进制转二进制 题解:long long 就能过,二进制用string存
#include <bits/stdc++.h> using namespace std; int main(){ long long x; while(cin>>x){ string ans; whi...
P1715
2025年2月8日 15:56
回复 0
|
赞 4
|
浏览 325
迭代求立方根 题解:说是迭代,方程都给了,不如直接dp带迭代
#include <bits/stdc++.h> using namespace std; int main(){ double x;int n; while(cin>>x>>n){ std::vector&...
P1379
2025年2月8日 15:47
回复 0
|
赞 2
|
浏览 257
1
...
3
4
5
6
7
...
9
本科学校:中国药科大学
目标学校:河南大学
点此申请N诺身份认证
获得 noobdream 认证,享受多重认证福利!