自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(9)
  • 收藏
  • 关注

原创 Moscow Pre-Finals Workshop 2020 - Legilimens+Coffee Chicken Contest (XX Open Cup, Grand Prix of Nanj

J.Gaokao 题意:一个三角,第一个和最后一个数是1,其他位置的数是头上两个数之和。问第K行有多少奇数。 思路:遍历,判断奇数数目。 #include <bits/stdc++.h> using namespace std; int main() { long long x; int t; cin >> t; while(t -- ) { cin >> x; if(x <=

2021-08-22 18:51:59 625

原创 UMPT 2020-2021 Team Tryout Contest

A. Ann Arbor #include<bits/stdc++.h> using namespace std; int i,j; int main(){ int k,d,t=0; cin>>k>>d; int a[d]; for(i=0;i<d;i++)cin>>a[i]; for(i=0;i<d;i++){ if(a[i]<k){ cout<<i+1<<endl; t=1;

2021-08-15 20:30:47 155

原创 UFPE Starters Final Try-Outs 2020

E. Everybody loves acai #include <iostream> using namespace std; const int N =2000010; int a[N]; int main() { int n; int i; scanf("%d",&n); for(i=0;i<n;i++) scanf("%d",&a[i]); for(i=0;i<n;i++) { if(a[i]>=8128) printf("8128

2021-08-15 20:30:05 146

原创 The 14th Jilin Provincial Collegiate Programming Contest

L. Swimmer #include<bits/stdc++.h> using namespace std; long long a[1000001]; int main(){ int n,q,i,j; long long m,x,z,y; scanf("%d %lld %d",&n,&m,&q); for(i=1;i<=n;i++){ scanf("%lld",&a[i]); } while(q--){ scanf("%lld

2021-08-15 20:25:05 141

原创 The 15-th BIT Campus Programming Contest - Onsite Round

I. Nobody Knows Better Than Me 题意:给定n和m,n组数据,每组数据两个数,l和r。l+r=100,且不相等。想让r>l需要(l-r)/2个能量,一共有m个能量。问是否可以让n组数据中,r>l的数据的个数多于r<l。 思路:根据能量从小到大排序r>l的数据,一次消耗m直到m无法消耗,看此时是否满足。 1. #include<bits/stdc++.h> 2. using namespace std; 3. #define ll lon

2021-08-08 22:11:04 144

原创 2020 Jiangsu Collegiate Programming Contest

C.CAT 题意:可以给无限个1到20的数,找n个数排列,满足不能有一样的数相邻,且一样的数中间最小的数不能大于这两个相邻的数。 1. #include<bits/stdc++.h> 2. using namespace std; 3. int main() 4. { 5. int n,i; 6. cin>>n; 7. int a[20]; 8. for(i=1;i<=18;i++) 9. { 10. a[i]=po

2021-08-08 22:00:44 90

原创 2021 ECNU Campus Invitational Contest

I.I LOVE YOU 题意:给定两串字符串,A串、B串,问是否可以通过删除一些字符使A串变成B串。 思路:遍历一遍是否可能符合。 1. #include<bits/stdc++.h> 2. using namespace std; 3. char a[100],b[100]; 4. int x,y,i,j,t; 5. int main() 6. { 7. gets(a); 8. gets(b); 9. x=strlen(a); 10. y=strlen(b); 11. ..

2021-08-08 21:55:05 177

原创 2021 shandong provincial collegiate programming contest

D.Dyson box #include <bits/stdc++.h> using namespace std; #define ls o<<1 #define rs o<<1|1 #define fi first #define se second typedef long long ll; typedef pair<int,int> pii; const int maxn=2e5+10; const int mod=1e9+7; const ll i

2021-07-25 20:31:31 210

原创 The 2021 Sichuan Provincial Collegiate Programming Contest

A.chuanpai #include<bits/stdc++.h> using namespace std; #pragma warning(disable:4996) const double eps = 1e-6; typedef long long ll; #define debug(x) cout<<#x<<": "<<(x)<<endl; #define lfeq(a,b) (abs((a)-(b)) < eps) i.

2021-07-25 20:04:55 195

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除