摘要: #include<bits/stdc++.h> using namespace std; const int maxn=10000; struct stu{ int a,b,cha,num; int c; }k[maxn]; bool cmp(stu x,stu y){ if(y.cha>x.cha 阅读全文
posted @ 2022-01-15 17:04 happycrazy 阅读(62) 评论(0) 推荐(0)
摘要: #include<bits/stdc++.h> using namespace std; int vis[10005],a[10005],t,n; int main(){ scanf("%d",&t); while(t--){ bool flag = true; scanf("%d",&n); fo 阅读全文
posted @ 2022-01-14 23:27 happycrazy 阅读(74) 评论(0) 推荐(0)
摘要: #include<bits/stdc++.h> using namespace std; int main(){ int n,x,y,a1,b1,c1,d1; int a[1000001],b[1000001],c[1000001],d[1000001]; long long aa,bb,cc,dd 阅读全文
posted @ 2022-01-14 17:53 happycrazy 阅读(40) 评论(0) 推荐(0)
摘要: #include<bits/stdc++.h> using namespace std; int main(){ int n,m,flag; string s; cin>>n; for(int i=1;i<=n;i++){ cin>>m; cin>>s; flag=0; int len=s.size 阅读全文
posted @ 2022-01-14 01:20 happycrazy 阅读(48) 评论(0) 推荐(0)
摘要: #include<bits/stdc++.h> using namespace std; int main(){ long long n,m,a[1000],ans1,ans2,k; scanf("%d",&n); for(int i=1;i<=n;i++){ scanf("%lld",&m); m 阅读全文
posted @ 2022-01-14 00:30 happycrazy 阅读(47) 评论(0) 推荐(0)
摘要: #include<bits/stdc++.h> using namespace std; int main(){ int n; string a; cin>>n; for(int i=1;i<=n;i++){ cin>>a; int minn=100; int len=a.size(); for(i 阅读全文
posted @ 2022-01-13 17:24 happycrazy 阅读(31) 评论(0) 推荐(0)
摘要: #include<bits/stdc++.h> using namespace std; int main(){ int n; string a; cin>>n; for(int i=1;i<=n;i++){ cin>>a; int len=a.size(); if(a[0]==a[len-1]){ 阅读全文
posted @ 2022-01-13 17:17 happycrazy 阅读(33) 评论(0) 推荐(0)
摘要: #include<iostream> #include<cmath> #include<cstring> #include<string> #include<algorithm> using namespace std; int main(){ long long n,sum=0,ans,a[100 阅读全文
posted @ 2022-01-12 16:08 happycrazy 阅读(32) 评论(0) 推荐(0)
摘要: #include<bits/stdc++.h> using namespace std; int main(){ int n; int p1,p2; string a,b; scanf("%d",&n); for(int i=1;i<=n;i++){ cin>>a>>p1; cin>>b>>p2; 阅读全文
posted @ 2022-01-11 17:47 happycrazy 阅读(67) 评论(0) 推荐(0)
摘要: 题目: Given a positive integer nn. Find three distinct positive integers aa, bb, cc such that a+b+c=na+b+c=n and gcd(a,b)=cgcd⁡(a,b)=c, where gcd(x,y)gc 阅读全文
posted @ 2022-01-11 01:43 happycrazy 阅读(71) 评论(0) 推荐(0)