首页
DreamJudge
院校信息
专业题库
模拟考试
机试真题
上岸课程
兑换中心
登录
注册
上岸
RingoCrystal
我是菜逼
关注
发消息
文章
0
题解
166
发帖
0
笔记
49
Ta的粉丝
68
关注数
0
粉丝数
68
获赞数
855
阅读数
61503
还是畅通工程 题解:并查集优化实现的最小生成树问题
#include <bits/stdc++.h> using namespace std; struct road{ int a,b,w; road(int a,int b,int w):a(a),b(b),w(w){} bool oper...
P1341
2025年3月14日 13:29
回复 0
|
赞 1
|
浏览 154
最长连续公共子序列 题解:滑动窗口解法
#include <bits/stdc++.h> using namespace std; int main() { string s1, s2; while (cin >> s1 >> s2) { in...
P1730
2025年3月14日 11:50
回复 1
|
赞 7
|
浏览 241
Problem E 题解:稍微复杂的括号匹配
#include <bits/stdc++.h> using namespace std; map<char,char> mp={ {'(',')'},{'[',']'},{'{','}'} }; int main(){ in...
P1425
2025年3月14日 10:59
回复 0
|
赞 0
|
浏览 155
good morning 题解:find
#include <bits/stdc++.h> using namespace std; int main() { string s; while(getline(cin,s)){ int ct=0; while(s.find("goo...
P1207
2025年3月14日 10:29
回复 0
|
赞 0
|
浏览 154
字符串的操作 题解:中文冒号,两个空格
#include <bits/stdc++.h> using namespace std; char kaiSaChange(char c){ int k; char ans; if(c>='a'&&c<='z'...
P1699
2025年3月14日 10:26
回复 0
|
赞 2
|
浏览 160
字符串删除 题解:find函数
#include <bits/stdc++.h> using namespace std; int main() { string s,t; while(cin>>s>>t){ int ct=0; ...
P1856
2025年3月13日 11:48
回复 0
|
赞 1
|
浏览 152
位运算 题解:bitset暴力解
#include <bits/stdc++.h> using namespace std; int main() { int n,i,j; while(cin>>n>>i>>j){ strin...
P1906
2025年3月13日 11:36
回复 0
|
赞 1
|
浏览 176
南京理工-搬箱子 题解:STL经典问题
#include <bits/stdc++.h> using namespace std; int main() { int n; while(cin>>n){ vector<int>a(n),dp(n,...
P1840
2025年3月13日 11:23
回复 0
|
赞 3
|
浏览 144
惠民工程 题解:并查集和kruskal解决DST详解
#include <bits/stdc++.h> using namespace std; struct edge { int a, b, w; edge(int a, int b, int w) : a(a), b(b), w(w) {} ...
P1661
2025年3月13日 10:51
回复 0
|
赞 2
|
浏览 184
A除以B 题解:大数除一般数
#include <bits/stdc++.h> using namespace std; int main() { string s; int n; while (cin >> s >> n) { ...
P1851
2025年3月13日 10:20
回复 0
|
赞 1
|
浏览 163
判断字符串是否有效 题解:经典栈问题
#include <bits/stdc++.h> using namespace std; int main() { string s; while(cin>>s){ stack<char>st; bool fla...
P5230
2025年3月12日 11:47
回复 0
|
赞 5
|
浏览 157
搬水果 题解:优先队列,哈夫曼树思路
#include <bits/stdc++.h> using namespace std; int main() { int n; while(cin>>n){ priority_queue<int,vector<int>...
P1371
2025年3月11日 13:30
回复 0
|
赞 0
|
浏览 170
TAT的个数 题解:二分计数
#include <bits/stdc++.h> using namespace std; int main() { string s; while(cin>>s){ long long ct=0; for(auto x:s)...
P1646
2025年3月11日 10:36
回复 0
|
赞 10
|
浏览 300
A + B 加强版 题解:看似复杂,其实简单的输入手段
#include <bits/stdc++.h> using namespace std; string sn[10]={ "zero","one","two","three","four","five","six","seven","eight","nine...
P1323
2025年3月11日 10:27
回复 0
|
赞 5
|
浏览 145
使序列转化为非递减序列 题解:变化次数统计
#include <bits/stdc++.h> using namespace std; int main() { int n; while(cin>>n){ vector<int>a(n); for(int i...
P5231
2025年3月10日 11:26
回复 0
|
赞 7
|
浏览 281
排列与二进制 题解:不需要大数,只需要逻辑
#include <bits/stdc++.h> using namespace std; int main() { int a,b; while(cin>>a>>b){ if(a==0&&b==0)break...
P1368
2025年3月9日 11:27
回复 0
|
赞 13
|
浏览 312
今天是周几 题解:正走倒走都可以走
#include <bits/stdc++.h> using namespace std; int date[2][13]={ {0,31,28,31,30,31,30,31,31,30,31,30,31}, {0,31,29,31,30,31,30...
P1816
2025年3月9日 10:37
回复 0
|
赞 8
|
浏览 200
简单的分数求和 题解:通过率低的原因可能是不知道可以强制转换
#include <bits/stdc++.h> using namespace std; int main() { int x; while(cin>>x){ double y=1.0; double ans...
P1831
2025年3月3日 14:35
回复 0
|
赞 0
|
浏览 253
正整数分解质因数 题解:标准因数分解
#include <bits/stdc++.h> using namespace std; int main() { int n; while(cin>>n){ vector<int>a; ...
P1885
2025年3月3日 11:02
回复 0
|
赞 5
|
浏览 251
整数排序 题解:重定义比较或者直接重定义一个结构
#include <bits/stdc++.h> using namespace std; struct newInt{ int a; newInt():a(0){}; newInt(int a):a(a){}; int getl...
P1905
2025年3月3日 10:45
回复 0
|
赞 1
|
浏览 203
1
2
3
4
...
9
本科学校:中国药科大学
目标学校:河南大学
点此申请N诺身份认证
获得 noobdream 认证,享受多重认证福利!