题目链接:https://pintia.cn/problem-sets/1101307589335527424/problems/1101314114867245056 题意:给n个国家,以及每个国家的金牌数、奖牌数、人口数(百万)。以及m个来询问的国家,现在有4中排名方式(金牌数,奖牌数、人均金牌 ...
分类:
其他好文 时间:
2019-03-08 13:57:17
阅读次数:
357
作者水平有限,所发仅为个人愚见,如有明显谬误,望斧正 这是一道随便搞搞就能过的模拟题,看到的时候我没有想太多,直接搜过去了——先找到白车位置,然后东南西北四个方向看一下离白车最近的是己方还是敌方棋子,己方棋子就跳出循环,敌方棋子让结果变量cnt自增1以后跳出循环。cnt只有可能是{0,1,2,3,4 ...
分类:
其他好文 时间:
2019-02-24 21:46:52
阅读次数:
303
重演到第7场啦~撒花~ 这是一道简单的模拟题,但是要稍微想一下循环的顺序~~ 给出男生的编号和女生的编号(编号可以重复) 两两配对的条件需要满足abs(a[i]-b[i])<=1; 也就是最大相差不能超过1; 如果不排序的话,模拟的步骤就是两个循环: for(int i=0;i<n;i++) for ...
分类:
其他好文 时间:
2019-02-24 13:26:10
阅读次数:
122
Problem: Given an array A, we may rotate it by a non-negative integer K so that the array becomes A[K], A[K+1], A{K+2], ... A[A.length - 1], A[0], A[1 ...
分类:
其他好文 时间:
2019-02-10 09:15:23
阅读次数:
168
Goodbye 2018 可能是我太菜考试的时候出不了$E$ 可能是我太菜考试的时候调不出$F$ 所以转化为手速场之后手速还上不去.jpg A 模拟题意... cpp include include include using namespace std; int main() { int y,b, ...
分类:
数据库 时间:
2019-02-06 13:23:55
阅读次数:
174
Codeforces Beta Round #5 http://codeforces.com/contest/5 A 模拟题 1 #include<bits/stdc++.h> 2 using namespace std; 3 #define lson l,mid,rt<<1 4 #define r ...
分类:
其他好文 时间:
2019-02-01 23:26:05
阅读次数:
153
Codeforces Beta Round#2 http://codeforces.com/contest/2 A 模拟题 1 #include<bits/stdc++.h> 2 using namespace std; 3 typedef long long ll; 4 5 map<string, ...
分类:
其他好文 时间:
2019-01-29 22:02:03
阅读次数:
227
题目链接:https://cn.vjudge.net/contest/281037#problem/A 题目大意:给你a,b,n。a代表第一个杯子的容量,b代表第二个杯子的容量,然后一共有6种操作。让你用尽可能少的步骤将第二个杯子的当前的水的体积转换成n。 具体思路:就是队列模拟啊,,,,打比赛的时 ...
分类:
其他好文 时间:
2019-01-25 17:51:12
阅读次数:
143