首页
DreamJudge
院校信息
专业题库
模拟考试
机试真题
上岸课程
兑换中心
登录
注册
上岸
阿灿
这个人很懒,什么都没有写...
关注
发消息
文章
0
题解
81
发帖
0
笔记
0
Ta的粉丝
0
关注数
0
粉丝数
0
获赞数
275
阅读数
10600
统计同成绩学生人数 map
#include<bits/stdc++.h> using namespace std; int main(){ int n; int x; int y; while(cin>>n&&n!=0){ map<int,in...
P1329
2025年3月25日 16:28
回复 0
|
赞 1
|
浏览 37
二叉排序树2 题解:
#include<bits/stdc++.h> using namespace std; typedef struct node{ int c; struct node *r,*l; } *Tree; void CreateTree(Tree &T,...
P1411
2025年3月25日 16:20
回复 0
|
赞 1
|
浏览 33
二叉树的建立和遍历 题解:
#include<bits/stdc++.h> using namespace std; typedef struct Node{ char c; struct Node *lchild,*rchild; }*Tree; Tree create(Tree &am...
P1109
2025年3月25日 15:49
回复 0
|
赞 8
|
浏览 136
素数判定 题解:
#include<bits/stdc++.h> using namespace std; int shu(int x){ for(int i=2;i<=sqrt(x);i++){ if(x%i==0)return false; } return tr...
P1102
2025年3月25日 11:51
回复 0
|
赞 2
|
浏览 25
01字符串 题解:
#include<bits/stdc++.h> using namespace std; int main(){ long long int fn[10001]; fn[1]=1; fn[2]=2; fn[3]=3; for(int i=4;i<=...
P1479
2025年3月25日 11:10
回复 0
|
赞 2
|
浏览 56
判断素数 题解:
#include<bits/stdc++.h> using namespace std; bool shu(int x){ if(x<2) return false; for(int i=2;i<=sqrt(x);i++){ if(x%i==0) ...
P1013
2025年3月25日 10:59
回复 0
|
赞 0
|
浏览 29
最简真分数 题解:
#include<bits/stdc++.h> using namespace std; int gcd(int a,int b){ return b==0?a:gcd(b,a%b); } int main(){ int n; int buf[600]; ...
P1180
2025年3月25日 10:51
回复 0
|
赞 2
|
浏览 46
求S(n) 题解:
#include<bits/stdc++.h> using namespace std; int main(){ long long int n; while(cin>>n){ cout<<(n%3)*(n%3)*(n%3)%3<...
P1500
2025年3月25日 10:12
回复 0
|
赞 3
|
浏览 59
成绩排序 题解:stablesort
#include<bits/stdc++.h> using namespace std; struct stu{ string n; int num; stu(string a,int b){ n=a; num=b; } }; bool ...
P1151
2025年3月24日 22:31
回复 0
|
赞 4
|
浏览 97
素数 题解:我才是真的暴力
#include<bits/stdc++.h> using namespace std; int ans[306]={11,31,41,61,71,101,131,151,181,191,211,241,251,271,281,311,331,401,421,431,461...
P1375
2025年3月24日 22:13
回复 0
|
赞 0
|
浏览 71
字符棱形 题解:
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; for(int i=1;i<=n;i++){ for(int j=n-1;j>=i;j-...
P1473
2025年3月24日 21:50
回复 0
|
赞 2
|
浏览 64
字母统计 题解:map
#include<bits/stdc++.h> using namespace std; int main(){ map<char ,int> m; string str; cin>>str; for(char c:str){ ...
P1292
2025年3月24日 21:34
回复 0
|
赞 2
|
浏览 54
0和1的个数 题解:整点不一样的
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; string k; k = bitset<32>(n).to_string(); in...
P1008
2025年3月24日 21:26
回复 0
|
赞 1
|
浏览 67
平均值 题解:怎么直接这样就行
#include<bits/stdc++.h> using namespace std; int main(){ double a,b; cin>>a>>b; cout<<(a/2+b/2)<<endl; re...
P1132
2025年3月15日 02:55
回复 1
|
赞 2
|
浏览 188
合并果子 题解:
#include<bits/stdc++.h> using namespace std; struct node{ int x; node(int a){ x = a; } }; priority_queue<node> q; bool ...
P1544
2025年3月22日 23:12
回复 0
|
赞 1
|
浏览 50
括号匹配 题解:stack
#include<bits/stdc++.h> using namespace std; int main(){ string str; cin>>str; int n=str.length(); stack<char>st; f...
P1501
2025年3月22日 22:45
回复 0
|
赞 5
|
浏览 72
最大公约数1 题解:
#include<bits/stdc++.h> using namespace std; int gcd(int a,int b){ return b==0?a:gcd(b,a%b); } int lcm(int a,int b){ return a*b/gcd...
P1426
2025年3月22日 16:54
回复 0
|
赞 0
|
浏览 55
组队刷题 题解:
#include<bits/stdc++.h> using namespace std; struct node{ double m;//毫升 double w;//价格 double d;//单位价格 }; bool cmp(node a,node b){...
P1307
2025年3月22日 16:15
回复 0
|
赞 6
|
浏览 109
喝饮料 题解:额原来都只有一瓶啊
#include<bits/stdc++.h> using namespace std; struct node{ double m;//毫升 double w;//价格 double d;//单位价格 }; bool cmp(node a,node b){...
P1478
2025年3月22日 16:14
回复 0
|
赞 3
|
浏览 104
查找第K小数 题解:sort+unique
#include<bits/stdc++.h> using namespace std; int main(){ int n,i; while(cin>>n){ int num[10000]; for(i=0;i<n;i++){ ...
P1383
2025年3月22日 15:25
回复 0
|
赞 3
|
浏览 96
1
2
3
...
5
本科学校:湘潭大学
目标学校:湘潭大学
点此申请N诺身份认证
获得 noobdream 认证,享受多重认证福利!