主站
DreamJudge
院校信息
专业题库
模拟考试
机试真题
上岸课程
讨论区
兑换中心
登录
注册
上岸
RingoCrystal
我是菜逼
关注
发消息
文章
0
题解
119
发帖
0
笔记
49
Ta的粉丝
68
关注数
0
粉丝数
68
获赞数
90
阅读数
19882
车厢重组 题解:bubble_sort(冒泡排序)
#include <bits/stdc++.h> using namespace std; int main() { int n; while(cin>>n){ int a[n]; for(int i=0;i...
P1060
2025年2月16日 10:45
回复 0
|
赞 0
|
浏览 37
输出图形 题解:简单循环
#include <bits/stdc++.h> using namespace std; int main() { int n; while(cin>>n){ int k=1; for(int i...
P1704
2025年2月15日 12:10
回复 0
|
赞 1
|
浏览 34
长方形中的正方形 题解:几何模拟
#include <bits/stdc++.h> using namespace std; struct sqr{ int a,b; sqr(int width,int length):a(width),b(length){} }; int ...
P1819
2025年2月14日 11:59
回复 0
|
赞 0
|
浏览 37
T和Y的计划 题解:存储星球坐标,然后计算到核心距离
#include <bits/stdc++.h> using namespace std; struct plant{ int id; double x,y,z; plant(int id,double x,double y,double ...
P1028
2025年2月14日 11:27
回复 0
|
赞 0
|
浏览 46
数字填充 题解:三维数组辅助
#include <bits/stdc++.h> using namespace std; int b[10][5][3] = { { // 0 {1,1,1}, {1,0,1}, {1,0,1}, ...
P1488
2025年2月14日 11:01
回复 0
|
赞 0
|
浏览 33
集合交并 题解:map,set一起用
#include <bits/stdc++.h> using namespace std; int main() { int n,m; while(cin>>n>>m){ map<int,int>mp; ...
P1813
2025年2月14日 10:42
回复 0
|
赞 0
|
浏览 22
Special数 题解:6次方数
#include <iostream> #include <cmath> using namespace std; int countSpecialNumbers(int n) { int count = 0; int k = 1; ...
P1560
2025年2月12日 10:28
回复 0
|
赞 0
|
浏览 50
简单的求和 题解:最方便扩展的对象就是string
#include <bits/stdc++.h> using namespace std; int stringToInt(string s){ int ans=0; for(auto x:s){ ans*=10; ...
P1083
2025年2月12日 09:53
回复 0
|
赞 0
|
浏览 46
String Matching 题解:朴素匹配
#include <bits/stdc++.h> using namespace std; int main() { string t,p; while(cin>>t>>p){ int ans=0; for(int...
P1270
2025年2月12日 09:49
回复 0
|
赞 0
|
浏览 57
疯狂的小面包 题解:优先步行
#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
|
赞 0
|
浏览 95
树查找 题解:数学解
#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
|
赞 0
|
浏览 68
单词替换 题解:单个用例,分别测试,可以采用特殊读取法
#include <bits/stdc++.h> using namespace std; int main() { vector<string> a; string s; while(cin>>s){ ...
P1196
2025年2月11日 16:22
回复 0
|
赞 0
|
浏览 69
完全背包问题 题解:二维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
|
赞 0
|
浏览 66
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
|
赞 1
|
浏览 71
最大素因子 题解:素数筛选法,快速得到素因子
#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
|
赞 0
|
浏览 78
复数集合 题解: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
|
赞 0
|
浏览 54
发财数 题解:素数筛加搜索法
#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
|
赞 0
|
浏览 53
整数拆分 题解:数学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
|
赞 1
|
浏览 61
爬楼梯游戏 题解:为了防止爆内存,我们事先准备好数组
#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
|
赞 0
|
浏览 83
奥运排序问题 题解:代码巨大化,各种情况难以统一美化
#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
|
赞 1
|
浏览 94
1
2
3
4
...
6
本科学校:中国药科大学
目标学校:河南大学
点此申请N诺身份认证
获得 noobdream 认证,享受多重认证福利!