主站
DreamJudge
院校信息
专业题库
模拟考试
机试真题
上岸课程
讨论区
兑换中心
登录
注册
上岸
RingoCrystal
我是菜逼
关注
发消息
文章
0
题解
119
发帖
0
笔记
49
Ta的粉丝
68
关注数
0
粉丝数
68
获赞数
90
阅读数
19808
守形数 题解:长度判定用求模方法计算
#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
|
赞 0
|
浏览 17
是(四)素数 题解:素数筛时限不过解决办法
#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
|
赞 0
|
浏览 26
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
|
浏览 39
字符串的差 题解:按照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
|
赞 0
|
浏览 26
对称平方数 题解:不含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
|
赞 0
|
浏览 60
堆的判断 题解:堆的完全二叉树特性
#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
|
赞 0
|
浏览 32
选球问题 题解:这不是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
|
赞 0
|
浏览 25
复制、剪切、粘贴 题解:熟练运用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
|
赞 0
|
浏览 72
斗牛 题解: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
|
赞 0
|
浏览 40
素数求和 题解:素数筛,或者...
#include <bits/stdc++.h> using namespace std; int main(){ int a[101]={0}; for(int i=2;i*i<=100;i++){ int j=2; ...
P1714
2025年2月17日 15:35
回复 0
|
赞 0
|
浏览 38
相隔天数 题解:考虑两个方向,大于和小于
#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...
P1825
2025年2月17日 10:45
回复 0
|
赞 1
|
浏览 29
String to int 题解:希望大佬解释,为什么过不去验证,对于常规例子可以通过
#include <bits/stdc++.h> using namespace std; int main() { string s; while (getline(cin, s)) { int i = 0, flag = 0...
P1623
2025年2月15日 11:59
回复 2
|
赞 1
|
浏览 78
删除公共字符 题解:小心空格,erase后注意--
#include <bits/stdc++.h> using namespace std; int main(){ string a,b; while(getline(cin,a)){ getline(cin,b); ...
P1206
2025年2月16日 17:26
回复 0
|
赞 0
|
浏览 42
对称平方数1 题解:不是,你要输出 i 你直说啊
#include <bits/stdc++.h> using namespace std; int reverseInt(int x){ int ans=0; while(x!=0){ ans*=10; ans...
P1455
2025年2月16日 17:19
回复 0
|
赞 0
|
浏览 30
n的阶乘2.0 题解:dp结合大数乘
#include <bits/stdc++.h> using namespace std; string multiplyBigNumber(const string & num, int multiplier) { if (multiplier ...
P1174
2025年2月16日 17:07
回复 0
|
赞 0
|
浏览 44
打牌 题解:简单模拟
#include <bits/stdc++.h> using namespace std; int main(){ string a,b; while(cin>>a>>b){ map<int,int...
P1385
2025年2月16日 16:56
回复 0
|
赞 0
|
浏览 39
最长连号 题解:dp最长加一子序列
#include <bits/stdc++.h> using namespace std; int main(){ int n; while (cin >> n) { vector<int> a(n),d...
P1571
2025年2月16日 14:21
回复 0
|
赞 0
|
浏览 47
十六进制不进位加法 题解:对齐后累加
#include <bits/stdc++.h> using namespace std; int main() { string a,b; while(cin>>a>>b){ while(a.size()!=b.size()...
P1702
2025年2月16日 14:11
回复 0
|
赞 0
|
浏览 44
回文质数 题解:素数筛法
#include <bits/stdc++.h> using namespace std; int reverseInt(int x){ int ans=0; while(x!=0){ ans*=10; ans+=...
P1706
2025年2月16日 11:14
回复 0
|
赞 0
|
浏览 40
Simple Sorting 题解:大家好,我是set,我自带排序
#include <bits/stdc++.h> using namespace std; int main() { int n; while(cin>>n){ set<int> a; for(i...
P1273
2025年2月16日 10:51
回复 0
|
赞 0
|
浏览 32
1
2
3
...
6
本科学校:中国药科大学
目标学校:河南大学
点此申请N诺身份认证
获得 noobdream 认证,享受多重认证福利!