首页
DreamJudge
院校信息
专业题库
模拟考试
机试真题
上岸课程
兑换中心
登录
注册
上岸
阿灿
这个人很懒,什么都没有写...
关注
发消息
文章
0
题解
81
发帖
0
笔记
0
Ta的粉丝
0
关注数
0
粉丝数
0
获赞数
275
阅读数
10600
查找1 题解:map++
#include<bits/stdc++.h> using namespace std; int main(){ int n,i,x; while(cin>>n){ map<int,int>num; for(i=0;i<n;...
P1388
2025年3月22日 15:16
回复 0
|
赞 2
|
浏览 95
查找学生信息 题解:map
#include<bits/stdc++.h> using namespace std; int main(){ int n,m,i,x,p[1000]; while(cin>>n>>m){ map<int,int>book...
P1177
2025年3月22日 15:10
回复 0
|
赞 1
|
浏览 44
字符串排序 题解:
#include<bits/stdc++.h> using namespace std; int main(){ string n; while(cin>>n){ sort(n.begin(),n.end()); cout<<n&...
P1254
2025年3月21日 16:36
回复 0
|
赞 2
|
浏览 97
整数奇偶排序 题解:SORT
#include<bits/stdc++.h> using namespace std; bool cmp(int a,int b){ if((a%2)==(b%2)){ if(a%2==0){ return a<b; }else{ r...
P1248
2025年3月21日 16:23
回复 0
|
赞 3
|
浏览 80
国名排序 题解:C++
#include<bits/stdc++.h> using namespace std; int main(){ string country[100]; int n,i; cin>>n; for(i=0;i<n;i++){ cin&...
P1217
2025年3月21日 16:09
回复 0
|
赞 3
|
浏览 97
成绩排序2.0 题解:
#include<bits/stdc++.h> using namespace std; struct student{ int co; int score; }stu[1000]; bool cmp(student a,student b){ if(a.s...
P1159
2025年3月21日 15:59
回复 0
|
赞 3
|
浏览 66
求解校验码 题解:
#include<bits/stdc++.h> using namespace std; int main(){ int num[10]; int M=0,S=0; scanf("%1d-%1d%1d-%1d%1d%1d%1d%1d%1d",&num[0...
P1928
2025年3月19日 14:38
回复 0
|
赞 0
|
浏览 85
消消乐 题解:你们还是太吃技术了看我的
#include<bits/stdc++.h> using namespace std; int main(){ int m; int n; cin>>m; int a[101]; while(m--){ cin>>n; ...
P1869
2025年3月19日 14:13
回复 0
|
赞 4
|
浏览 181
求30的倍数 题解:写多了,家人们一定要赋初始值
#include<bits/stdc++.h> using namespace std; int main(){ string n; int i; cin>>n; bool flag = 0; int num=0; int uu =n.l...
P1736
2025年3月19日 13:46
回复 0
|
赞 4
|
浏览 121
序列求平均 题解:
#include<bits/stdc++.h> using namespace std; int main(){ int n,m,tmp; int index; while(cin>>n>>m){ int t = n/m; ...
P1672
2025年3月19日 13:13
回复 0
|
赞 3
|
浏览 123
奇怪的餐厅 题解:
#include<bits/stdc++.h> using namespace std; struct people{ double discount; double t; }; bool cmp(people a,people b){ if(a.disco...
P1670
2025年3月19日 12:39
回复 0
|
赞 1
|
浏览 73
八进制 题解:printf("%o\n",n);
#include<bits/stdc++.h> using namespace std; int main(){ int n; while(cin>>n){ printf("%o\n",n); } return 0; }
P1417
2025年3月18日 19:10
回复 0
|
赞 3
|
浏览 126
二进制数 题解:log一下就好了
#include <bits/stdc++.h> using namespace std; int main() { long long n; cin >> n; // 计算需要的二进制位数 int bits = n ...
P1380
2025年3月18日 18:56
回复 0
|
赞 1
|
浏览 110
进制转换2 题解:scanf("%x",&x)这样不就好了吗兄弟们
#include<bits/stdc++.h> using namespace std; int main(){ int x; while(scanf("%x",&x)!=EOF){ cout<<x<<endl; } ...
P1259
2025年3月18日 18:54
回复 0
|
赞 1
|
浏览 154
反序数 题解:
#include<bits/stdc++.h> int main(){ int k,tmp; for(int i=1000;i<=9999;i++){\ k=0;tmp=i; int q=i*9; while(tmp>0){ k...
P1454
2025年3月18日 18:49
回复 0
|
赞 10
|
浏览 180
利润提成 题解:
#include<bits/stdc++.h> using namespace std; int main(){ double n,ans; while(cin>>n){ ans = 0; if(n<=100000) ans = n*0...
P1040
2025年3月18日 16:39
回复 0
|
赞 12
|
浏览 230
计算Sn 题解:
#include<bits/stdc++.h> using namespace std; int main(){ long long a,n,ans; long long t; while(cin>>a>>n){ ans=0; ...
P1043
2025年3月18日 16:31
回复 0
|
赞 6
|
浏览 154
细菌繁殖问题 题解:不知道啊 奇数求和
#include<bits/stdc++.h> using namespace std; int main(){ int n,m; cin>>m; while(m--){ cin>>n; cout<<2*n*n -...
P5126
2025年3月16日 01:27
回复 0
|
赞 2
|
浏览 121
集合中的相同元素 题解:map+sort
#include<bits/stdc++.h> using namespace std; int main(){ int n,i,t,num=0,ans[50],index=0; cin>>n; map<int,int>mymap; ...
P5105
2025年3月16日 01:18
回复 0
|
赞 1
|
浏览 136
n个数的最小公倍数 题解:b ? gcd(b,a%b) : a;
#include<bits/stdc++.h> using namespace std; int gcd(int a,int b){ return b ? gcd(b,a%b) : a; } int lcm(int x,int y){ return x*y/gc...
P3684
2025年3月16日 00:47
回复 0
|
赞 3
|
浏览 111
1
2
3
4
5
本科学校:湘潭大学
目标学校:湘潭大学
点此申请N诺身份认证
获得 noobdream 认证,享受多重认证福利!