- 博客(5)
- 收藏
- 关注
原创 Codeforces C - Registration System
利用map 很水的一题结合2B学到的知识#include<bits/stdc++.h>using namespace std;char a[34]; int n[2005],m,maxi; int main() { map<string,int>map1,map2; scanf("%d",&m); for(int i=0;i<m;+...
2018-03-01 20:20:14
168
原创 4A - Watermelon
CF史上最水#include<stdio.h>main(){ int n; scanf("%d",&n); if(n>3&&(n&1)==0)puts("YES");else puts("NO");}
2018-03-01 20:01:00
192
原创 *codeforces 3A. Shortest path of the king模拟
*codeforces 3A. Shortest path of the king模拟模拟即可#include<bits/stdc++.h>int main(){ char a[3],b[3]; scanf("%s%s",a,b); int t,i,j,T; t=abs(a[1]-'0'-(b[1]-'0')); T=abs(a[0]-'a'-(b[0]-'a')); if(t>...
2018-03-01 19:47:44
144
原创 Codeforces 2A - Winner模拟题
这题,读懂题是关键。题意:找到最终结果时分数是最大的,当有多个时,找到值最先大于等于最大值的人过程:模拟俩次过程,第一次求最大值,第二次求最先到达者。我写了两个代码,均带有注释,第一个是不用map函数的直接模拟的适合初学者阅读,另外一个是用map函数的短小精炼 在第一个代码后面。 AC代码:#include<bits/stdc++.h>using namespace std;...
2018-03-01 18:57:22
245
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人