首页
DreamJudge
院校信息
考研初试
机试真题
讨论区
兑换中心
登录
注册
上岸
苍灵
这个人很懒,什么都没有写...
关注
发消息
文章
0
题解
15
发帖
0
笔记
0
Ta的粉丝
0
关注数
0
粉丝数
0
获赞数
1
阅读数
289
负二进制 题解:C++
#include<bits/stdc++.h> using namespace std; int main(){ int n; while(cin>>n){ int m; string s; if(n==0){ cout&l...
P1097
2025年6月25日 16:03
回复 0
|
赞 0
|
浏览 12
数字 题解:C++ 利用数组巧解
#include<bits/stdc++.h> using namespace std; int main(){ string s; while(cin>>s){ int num[10]={0}; for(int i=0;i<s.l...
P1668
2025年6月25日 15:00
回复 0
|
赞 0
|
浏览 8
容易的题 题解:C++
#include<bits/stdc++.h> using namespace std; int main(){ string s; while(cin>>s){ int a=0,b=0,c=0,d=0; for(int i=0;i<...
P1667
2025年6月25日 14:49
回复 0
|
赞 0
|
浏览 5
平方和与立方和 题解:题中说了32位整数即可,所以可以使用int
#include<bits/stdc++.h> using namespace std; int main(){ int m,n; while(cin>>m>>n){ if(m>n){ swap(m,n); } ...
P1212
2025年6月23日 18:09
回复 0
|
赞 0
|
浏览 23
成绩的等级 题解:C++
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; if(n>=90){ cout<<"A"<<endl; }el...
P1038
2025年6月23日 18:00
回复 0
|
赞 0
|
浏览 26
校门外的树 题解:C++
#include<bits/stdc++.h> using namespace std; int main(){ int n,m,a[100][2],num[10001]={0}; cin>>n>>m; for(int i=0;i&l...
P1085
2025年6月23日 17:54
回复 0
|
赞 1
|
浏览 53
百鸡问题 题解:50%正确率的,看看写没写while(cin>>n)
#include<bits/stdc++.h> using namespace std; int main(){ int n; while(cin>>n){ for(int x=0;x<=n/5;x++){ for(int y=0...
P1348
2025年6月23日 17:26
回复 0
|
赞 0
|
浏览 20
平方和与倒数和 题解:C++
#include<bits/stdc++.h> using namespace std; //求和 int sumH(int n){ int sum=0; for(int i=1;i<=n;i++){ sum=sum+i;...
P1045
2025年6月23日 16:06
回复 0
|
赞 0
|
浏览 13
统计卡牌的值 题解:C++
#include<bits/stdc++.h> using namespace std; int main(){ int n,sum=0; cin>>n; for(int i=0;i<n;i++){ string s; cin&...
P1735
2025年6月23日 15:19
回复 0
|
赞 0
|
浏览 17
求S(n) 题解:费马小定理
#include<bits/stdc++.h> using namespace std; int main(){ long long n; while(cin>>n){ cout<<n%3<<endl; } re...
P1500
2025年6月23日 14:22
回复 0
|
赞 0
|
浏览 28
水仙花数 题解:C++
#include<bits/stdc++.h> using namespace std; int sumG(int a){ int sum=0; while(a!=0){ sum=sum+pow(a%10,3); a=a/10; } retu...
P1034
2025年6月23日 13:55
回复 0
|
赞 0
|
浏览 12
翻转数的和 题解:C++
#include<bits/stdc++.h> using namespace std; //定义翻转函数(实现了翻转之后去掉最前面的0) string fanzhuan(string s){ string s1,s2; int n; for(int ...
P1003
2025年6月23日 13:42
回复 0
|
赞 0
|
浏览 12
整数和 题解:C++
#include<bits/stdc++.h> using namespace std; int main(){ int m; cin>>m; int num[100]; for(int i=0;i<m;i++){ cin>...
P1428
2025年6月23日 12:20
回复 0
|
赞 0
|
浏览 15
身份证校验 题解:C++ 数组
#include<bits/stdc++.h> using namespace std; int main(){ string s; while(cin>>s){ int num[17]={7,9,10,5,8,4,2,1,6,3,7,9,10...
P1722
2025年6月23日 12:09
回复 0
|
赞 0
|
浏览 25
利润提成 题解:
#include<bits/stdc++.h> using namespace std; int main(){ long long sum,res=0; cin>>sum; while(sum>100000){ if(sum>...
P1040
2025年6月23日 11:49
回复 0
|
赞 0
|
浏览 20
本科学校:无
目标学校:无
点此申请N诺身份认证
获得 noobdream 认证,享受多重认证福利!