![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
codeforce
饮酒在风里
这个作者很懒,什么都没留下…
展开
-
codeforce B. BerSU Ball
题意:求最多可以组多少对舞伴,每对舞伴的技能数差不能大于1.向左贪心即可#include <iostream>#include <cstring>#include <vector>#include <algorithm>#include <cmath>#include <set>#include <c...原创 2019-05-23 23:51:26 · 133 阅读 · 0 评论 -
code force A. Epic Game(gcd求最大公约数)
A. Epic Gametime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputSimon and Antisimon play a game. Initially each player receives one ...原创 2019-05-23 22:05:58 · 197 阅读 · 0 评论 -
Codeforces A. Arrival of the General(贪心)
A Ministry for Defense sent a general to inspect the Super Secret Military Squad under the command of the Colonel SuperDuper. Having learned the news, the colonel ordered to allnsquad soldiers to li...原创 2019-05-10 15:10:32 · 394 阅读 · 0 评论 -
CODEFORCE 158B. Taxi
B. Taxitime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputAfter the lessonsngroups of schoolchildren went outside and decided to ...原创 2019-04-29 20:45:31 · 132 阅读 · 0 评论 -
Educational Codeforces Round 47 (Rated for Div. 2)--A. Game Shopping( 队列queue)
Maxim wants to buy some games at the local game shop. There arenngames in the shop, theii-th game costscici.Maxim has a wallet which can be represented as an array of integers. His wallet contai...原创 2019-01-23 18:58:46 · 179 阅读 · 0 评论 -
codeforces A. Elevator or Stairs? B. Appending Mex
A. Elevator or Stairs? 分别计算乘电梯和走楼梯所需时间再比较即可(电梯门需要开闭三次)#include<iostream>#include<math.h>#include<stdio.h>using namespace std;int main(){ int x,y,z,t1,t2,t3; while(scan...原创 2018-10-23 19:32:47 · 239 阅读 · 0 评论