首页
DreamJudge
院校信息
考研初试
机试真题
讨论区
兑换中心
登录
注册
上岸
苍灵
这个人很懒,什么都没有写...
关注
发消息
文章
0
题解
56
发帖
0
笔记
0
Ta的粉丝
1
关注数
1
粉丝数
1
获赞数
92
阅读数
18149
字符串排序3 题解:C++ cin.ignore()关键
#include<bits/stdc++.h> using namespace std; bool cStr(string s1,string s2){ if(s1.length()>s2.length()){ return true; }else{...
P1261
2025年9月2日 19:20
回复 0
|
赞 0
|
浏览 272
字符串排序 题解:C++
#include<bits/stdc++.h> using namespace std; int main(){ string s; while(cin>>s){ for(int i=0;i<s.length()-1;i++){ ...
P1254
2025年9月2日 18:46
回复 0
|
赞 0
|
浏览 299
删除字符串 题解:C++
#include<bits/stdc++.h> using namespace std; string sShan(string s){ string s1; int l=0; while(l<s.length()){ if(s[l]=='g'&...
P1026
2025年9月2日 18:39
回复 0
|
赞 0
|
浏览 239
字符串翻转 题解:C++
#include<bits/stdc++.h> using namespace std; int main(){ string s; cin>>s; for(int i=s.length()-1;i>=0;i--){ cout<...
P1006
2025年9月2日 18:38
回复 0
|
赞 3
|
浏览 305
删除字符串2 题解:C++
#include<bits/stdc++.h> using namespace std; string sShan(string s){ string s1; int l=0; while(l<s.length()){ if((s[l]=='G'...
P1027
2025年9月2日 18:36
回复 0
|
赞 3
|
浏览 318
首字母大写 题解:C++ 关键在于空白符的判定(两种方法)
#include<bits/stdc++.h> using namespace std; int main(){ string s; while(getline(cin,s)){ if(s[0]>=97&&s[0]<=122){...
P1240
2025年9月2日 17:22
回复 0
|
赞 4
|
浏览 303
字母统计 题解:C++
#include<bits/stdc++.h> using namespace std; int main(){ string s; while(cin>>s){ int num[25]={0}; for(int i=0;i<s....
P1292
2025年9月2日 16:52
回复 0
|
赞 1
|
浏览 244
字符移动 题解:C++
#include<bits/stdc++.h> using namespace std; int main(){ int n=0,m=0; char num[120],lin[120]; string s; cin>>s; for(int...
P1012
2025年9月2日 16:43
回复 0
|
赞 2
|
浏览 293
加密算法 题解:C++
#include<bits/stdc++.h> using namespace std; int main(){ string s; getline(cin,s); for(int i=0;i<s.length();i++){ if(s[i]&g...
P1014
2025年9月2日 16:35
回复 0
|
赞 2
|
浏览 284
Aconly时间戳 题解:C++
#include<bits/stdc++.h> using namespace std; struct data{ int y; int m; int d; int shi; int fen; int miao; }; int ma...
P1545
2025年9月2日 16:11
回复 0
|
赞 0
|
浏览 264
计算日期2 题解:C++
#include<bits/stdc++.h> using namespace std; struct data{ int y; int m; int d; }; // 判断年份是否是闰年 bool isRun(data a){ if((a.y...
P1708
2025年9月1日 19:29
回复 0
|
赞 0
|
浏览 288
日期累加 题解:C++ 注意:本题需要考虑闰年
#include<bits/stdc++.h> using namespace std; struct data{ int y; int m; int d; }; // 判断年份是否是闰年 bool isRun(data a){ if((a.y...
P1446
2025年9月1日 19:05
回复 0
|
赞 0
|
浏览 274
日期类 题解:C++
#include<bits/stdc++.h> using namespace std; struct data{ int y; int m; int d; }; // 输出这个日期的后一天的日期(不考虑闰年) void mHou(data a)...
P1437
2025年9月1日 18:42
回复 0
|
赞 0
|
浏览 285
日期差值 题解:C++
#include<bits/stdc++.h> using namespace std; struct data{ int y; int m; int d; }; // 将年月日由字符串类型转换为int类型 int mChange(string s...
P1290
2025年9月1日 18:25
回复 0
|
赞 1
|
浏览 339
日期计算 题解:C++ 50%正确率看这里
#include<bits/stdc++.h> using namespace std; struct data{ int y; int m; int d; }; // 判断月份和日是否合理 bool isTrue(data c){ if(c....
P1051
2025年8月30日 19:24
回复 0
|
赞 2
|
浏览 303
日期 题解:C++
#include<bits/stdc++.h> using namespace std; int main(){ int y,d,sumD; cin>>y>>d; if(y==4){ sumD=d-12; }else{ ...
P1011
2025年8月30日 18:41
回复 0
|
赞 0
|
浏览 301
矩阵对角线的和 题解:C++
#include<bits/stdc++.h> using namespace std; int main(){ int num[10][10]; for(int i=0;i<3;i++){ for(int j=0;j<3;j++){ ...
P1949
2025年8月30日 17:18
回复 0
|
赞 0
|
浏览 250
旋转矩阵 - 中南大学 题解:C++
#include<bits/stdc++.h> using namespace std; // 矩阵逆时针旋转90度 void Ni90(int num[120][120],int n){ int num1[120][120]; for(int i=0;i&...
P1933
2025年8月30日 17:14
回复 0
|
赞 0
|
浏览 264
最大子矩阵 题解:C++
#include<bits/stdc++.h> using namespace std; int main(){ int n; while(cin>>n){ int num[120][120],max=-18000; for(int i=...
P1245
2025年8月30日 17:02
回复 0
|
赞 0
|
浏览 244
西交-矩阵相加 题解:C++
#include<bits/stdc++.h> using namespace std; int main(){ int n,m; while(cin>>n>>m){ int num1[120][120],num2[120][120...
P1828
2025年8月28日 18:52
回复 0
|
赞 0
|
浏览 305
1
2
3
本科学校:无
目标学校:无
点此申请N诺身份认证
获得 noobdream 认证,享受多重认证福利!