题目网址链接:https://vjudge.net/problem/387095/origin 题目大意:给出桌子数和桌子容纳人数,给出几条操作,操作如下:给出顾客人数,问是否有能容纳顾客且桌子标号和桌子容纳人数与顾客人数差值同时最小的桌子,有即输出桌子编号,没有输出-1;期间会有顾客离开,给出离开 ...
分类:
其他好文 时间:
2018-07-08 15:39:17
阅读次数:
188
In this cafeteria, the N tables are all ordered in one line, where table number 1 is the closest to the window and table number N is the closest to th ...
分类:
其他好文 时间:
2018-07-08 14:36:22
阅读次数:
219
#include #define LL long long #define fi first #define se second #define mk make_pair #define pii pair using namespace std; const int N = 300 + 7; con... ...
分类:
编程语言 时间:
2018-07-07 22:25:48
阅读次数:
259
C - Two Squares 思路: 点积叉积应用 代码: ...
分类:
其他好文 时间:
2018-07-07 20:49:09
阅读次数:
160
题目链接:http://codeforces.com/gym/100989/problem/D In this cafeteria, the N tables are all ordered in one line, where table number 1 is the closest to th ...
分类:
其他好文 时间:
2018-07-06 14:17:55
阅读次数:
173
Suppose that all the keys in a binary tree are distinct positive integers. A unique binary tree can be determined by a given pair of postorder and ino ...
分类:
其他好文 时间:
2018-07-06 12:15:29
阅读次数:
181
题意:给定一个整数N,你需要求出∑gcd(i, N)(1 define fi first define se second define mp make_pair define pb push_back define pi acos( 1.0) define ll long long define ...
分类:
其他好文 时间:
2018-07-04 13:47:29
阅读次数:
152
7.3.2018 立个flag,暑假做完GOLD? 现在一共做了 SILVER 3 1606: [Usaco2008 Dec]Hay For Sale 购买干草:背包 4781: [Usaco2017 Open]Paired Up:贪心 4782: [Usaco2017 Open]Bovine Ge ...
分类:
其他好文 时间:
2018-07-03 20:13:55
阅读次数:
151
You are given two integer arrays nums1 and nums2 sorted in ascending order and an integer k. Define a pair (u,v) which consists of one element from th ...
分类:
其他好文 时间:
2018-07-03 14:54:45
阅读次数:
247
codeforces 17C Balance 题意 题解 代码 c++ include using namespace std; define fi first define se second define mp make_pair define pb push_back define rep(i ...
分类:
其他好文 时间:
2018-07-02 20:15:25
阅读次数:
179