首页
DreamJudge
院校信息
考研初试
机试真题
讨论区
兑换中心
登录
注册
上岸
苍灵
这个人很懒,什么都没有写...
关注
发消息
文章
0
题解
56
发帖
0
笔记
0
Ta的粉丝
1
关注数
1
粉丝数
1
获赞数
92
阅读数
18135
进制转换 题解:C++ 可主要分为两步:1.大数对2取余;2.大数除以2
#include<bits/stdc++.h> using namespace std; bool isZero(int a[],int len){ for(int i=0;i<len;i++){ if(a[i]!=0){ return fals...
P1178
2025年6月25日 18:41
回复 0
|
赞 1
|
浏览 306
负二进制 题解: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
|
赞 8
|
浏览 392
数字 题解: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
|
浏览 325
容易的题 题解: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
|
赞 1
|
浏览 241
平方和与立方和 题解:题中说了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
|
浏览 244
成绩的等级 题解: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
|
浏览 233
校门外的树 题解: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
|
浏览 420
百鸡问题 题解: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
|
赞 3
|
浏览 334
平方和与倒数和 题解: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
|
赞 2
|
浏览 503
统计卡牌的值 题解: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
|
赞 1
|
浏览 661
求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
|
赞 2
|
浏览 503
水仙花数 题解: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
|
赞 4
|
浏览 438
翻转数的和 题解: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
|
浏览 221
整数和 题解: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
|
浏览 234
身份证校验 题解: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
|
赞 7
|
浏览 433
利润提成 题解:
#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
|
赞 2
|
浏览 563
1
2
3
本科学校:无
目标学校:无
点此申请N诺身份认证
获得 noobdream 认证,享受多重认证福利!