首页
DreamJudge
院校信息
专业题库
模拟考试
机试真题
上岸课程
兑换中心
登录
注册
上岸
RingoCrystal
我是菜逼
关注
发消息
文章
0
题解
166
发帖
0
笔记
49
Ta的粉丝
68
关注数
0
粉丝数
68
获赞数
855
阅读数
61503
学生查询 题解:注意数据严谨性,不一定是序号顺序输入,需要sort
#include<bits/stdc++.h> using namespace std; struct student{ int id; string name,gender; int age; student():id(0)...
P1432
2025年3月2日 13:25
回复 0
|
赞 0
|
浏览 184
字符串 题解:find函数帮大忙
#include<bits/stdc++.h> using namespace std; int main(){ int n; while(cin>>n){ vector<string>a(n); ...
P1195
2025年3月2日 13:19
回复 0
|
赞 8
|
浏览 284
凑零钱 题解:一维dp缩减空间,并解释如何实现值匹配问题
#include <bits/stdc++.h> using namespace std; int main() { int n; while(cin>>n){ vector<int>dp(n+1,INT_MAX); ...
P1820
2025年3月2日 12:42
回复 0
|
赞 3
|
浏览 221
数字阶梯求和 题解:弱智判题给我整笑了
#include <bits/stdc++.h> using namespace std; void stringPlus(string &a,string b){ string c; while(a.size()!=b.size()){ ...
P1359
2025年2月28日 10:58
回复 2
|
赞 4
|
浏览 258
进制转换 - 华科 题解:使用bitset,拒绝手搓
#include <bits/stdc++.h> using namespace std; int main() { string s; while(cin>>s){ vector<int>a; ...
P1720
2025年2月28日 11:37
回复 0
|
赞 0
|
浏览 188
序列翻转 题解:数学推演,发现关键
#include <bits/stdc++.h> using namespace std; int main() { int n,m; while(cin>>n>>m){ m%=n; i...
P1519
2025年2月27日 10:45
回复 0
|
赞 0
|
浏览 221
阶乘2 题解:预处理加速后续判定
#include <bits/stdc++.h> using namespace std; int main() { int n; long long a[51]; a[0]=a[1]=1; for(int i=2;i<...
P1416
2025年2月27日 10:34
回复 0
|
赞 0
|
浏览 214
位操作练习 题解:位操作但是不用位,纯数学取模乘移
#include <bits/stdc++.h> using namespace std; int main() { int a, b; while (cin >> a >> b) { int t = a...
P1199
2025年2月27日 10:28
回复 0
|
赞 1
|
浏览 197
字符串压缩 题解:有意思的统计题
#include <bits/stdc++.h> using namespace std; int main() { string s; while(cin>>s){ map<char,int>mp; ...
P1718
2025年2月25日 18:03
回复 0
|
赞 5
|
浏览 258
最长连续递增序列 题解:连续,这就非常简单了,不需要dp
#include <bits/stdc++.h> using namespace std; int main() { int n; while(cin>>n){ int a[n]; for(int i=0;i<n;i++...
P897
2025年2月23日 17:34
回复 0
|
赞 5
|
浏览 236
编排字符串 题解:使用vector模拟
#include <bits/stdc++.h> using namespace std; int main() { int n; vector<string>a; while(cin>>n){ while(n--){ ...
P1447
2025年2月23日 17:26
回复 0
|
赞 1
|
浏览 163
守形数 题解:长度判定用求模方法计算
#include <bits/stdc++.h> using namespace std; bool judge(int x){ int y=x*x; int size=1; int t=x; while(x!=0){ ...
P1406
2025年2月21日 15:36
回复 0
|
赞 1
|
浏览 322
是(四)素数 题解:素数筛时限不过解决办法
#include <bits/stdc++.h> using namespace std; /* bool contians4(int x){ while(x!=0){ if(x%10==4)return true; x/...
P1740
2025年2月19日 15:42
回复 0
|
赞 4
|
浏览 335
Sum of Factorials 题解:从大到小搜索
#include <bits/stdc++.h> using namespace std; int main(){ int n; int fac[11]; fac[0]=1; fac[1]=1; for(int i=2;...
P1278
2025年2月19日 14:45
回复 0
|
赞 0
|
浏览 241
字符串的差 题解:按照t里面把s的全部一样的都删完
#include <bits/stdc++.h> using namespace std; int main(){ string s,t; while(cin>>s>>t){ for(auto x:t){ ...
P1832
2025年2月19日 14:34
回复 0
|
赞 4
|
浏览 262
对称平方数 题解:不含0
#include <bits/stdc++.h> using namespace std; int reverseInt(int x){ int ans=0; while(x!=0){ ans*=10; ans+=...
P1463
2025年2月19日 14:26
回复 0
|
赞 2
|
浏览 283
堆的判断 题解:堆的完全二叉树特性
#include <bits/stdc++.h> using namespace std; int main(){ int n; while(cin>>n){ vector<int>a(n); ...
P1127
2025年2月18日 17:08
回复 0
|
赞 2
|
浏览 257
选球问题 题解:这不是dp,刚开始看成限长增长子序列了,直接排序贪心即可
#include <bits/stdc++.h> using namespace std; int main() { int n, k; while (cin >> n >> k) { string s; ...
P1683
2025年2月18日 16:34
回复 0
|
赞 5
|
浏览 294
复制、剪切、粘贴 题解:熟练运用string操作函数
#include <bits/stdc++.h> using namespace std; int main() { string s; while(cin>>s){ string t; int n;cin>>n;...
P1559
2025年2月18日 16:01
回复 0
|
赞 3
|
浏览 289
斗牛 题解:5*5*5*1000的数据量,强搜即可
#include <bits/stdc++.h> using namespace std; int main() { int t; while(cin>>t){ while(t--){ int a[5]; ...
P999
2025年2月18日 15:53
回复 0
|
赞 1
|
浏览 236
1
2
3
4
5
...
9
本科学校:中国药科大学
目标学校:河南大学
点此申请N诺身份认证
获得 noobdream 认证,享受多重认证福利!