首页
DreamJudge
院校信息
专业题库
模拟考试
机试真题
408真题
专业课程
兑换中心
登录
注册
上岸
RingoCrystal
我是菜逼
关注
发消息
文章
0
题解
166
发帖
0
笔记
49
Ta的粉丝
68
关注数
0
粉丝数
68
获赞数
855
阅读数
61801
素数求和 题解:素数筛,或者...
#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
|
浏览 201
相隔天数 题解:考虑两个方向,大于和小于
#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
|
赞 13
|
浏览 343
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
|
赞 3
|
浏览 320
删除公共字符 题解:小心空格,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
|
赞 6
|
浏览 419
对称平方数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
|
赞 1
|
浏览 237
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
|
赞 2
|
浏览 226
打牌 题解:简单模拟
#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
|
赞 2
|
浏览 295
最长连号 题解: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
|
赞 3
|
浏览 276
十六进制不进位加法 题解:对齐后累加
#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
|
赞 4
|
浏览 265
回文质数 题解:素数筛法
#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
|
赞 1
|
浏览 236
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
|
浏览 257
车厢重组 题解: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
|
浏览 239
输出图形 题解:简单循环
#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
|
赞 4
|
浏览 298
长方形中的正方形 题解:几何模拟
#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
|
赞 1
|
浏览 241
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
|
赞 4
|
浏览 459
数字填充 题解:三维数组辅助
#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
|
赞 5
|
浏览 350
集合交并 题解: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
|
赞 2
|
浏览 266
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
|
赞 5
|
浏览 333
简单的求和 题解:最方便扩展的对象就是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
|
浏览 232
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
|
浏览 288
1
2
3
4
5
6
...
9
本科学校:中国药科大学
目标学校:河南大学
点此申请N诺身份认证
获得 noobdream 认证,享受多重认证福利!