- 博客(3)
- 收藏
- 关注
原创 1041 Be Unique (20分)
#include<iostream> using namespace std; int main(){ int n; cin>>n; int num[n]; int count[10000]={0}; for(int i=0;i<n;i++){ cin>>num[i]; count[num[i]]++; } int i; for(i=0;i<n;i++){ if(count[num[i]]==1){ cout<<n
2021-01-29 20:23:04 92
原创 1019 General Palindromic Number (20分)
#include<iostream> using namespace std; int main(){ int n,b; cin>>n>>b; int num[1000]; int count=0; while(n>0){ num[count]=n%b; n=n/b; count++; } int flag=1; for(int i=0;i<count/2;i++){ if(num[i]!=num[count-i-1]){
2021-01-24 19:59:59 85
原创 1012 The Best Rank (25分)
1012 The Best Rank #include<iostream> #include<map> #include<algorithm> using namespace std; struct Student{ string id; int C[2]; int M[2]; int E[2]; int A[2]; }stu[3000]; bool cmp1(Student a,Student b){ return a.C[0]>b.C[0]; }
2021-01-24 14:56:44 77
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人