摘要: inputstandard inputoutputstandard outputIt is raining heavily. But this is the first day for Serval, who just became 3 years old, to go to the kinderg 阅读全文
posted @ 2020-01-21 21:51 柒月是你的謊言 阅读(271) 评论(0) 推荐(0) 编辑
摘要: A. Zoning Restrictions Again ou are planning to build housing on a street. There are n spots available on the street on which you can build a house. T 阅读全文
posted @ 2020-01-21 21:50 柒月是你的謊言 阅读(238) 评论(0) 推荐(0) 编辑
摘要: A. Eating Souptime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard output The three friends, Kuro, Shiro, an 阅读全文
posted @ 2020-01-21 21:48 柒月是你的謊言 阅读(254) 评论(0) 推荐(0) 编辑
摘要: 看病要排队这个是地球人都知道的常识。 不过经过细心的0068的观察,他发现了医院里排队还是有讲究的。0068所去的医院有三个医生(汗,这么少)同时看病。而看病的人病情有轻重,所以不能根据简单的先来先服务的原则。所以医院对每种病情规定了10种不同的优先级。级别为10的优先权最高,级别为1的优先权最低。 阅读全文
posted @ 2020-01-21 21:45 柒月是你的謊言 阅读(211) 评论(0) 推荐(0) 编辑
摘要: Severe acute respiratory syndrome (SARS), an atypical pneumonia of unknown aetiology, was recognized as a global threat in mid-March 2003. To minimize 阅读全文
posted @ 2020-01-21 21:41 柒月是你的謊言 阅读(159) 评论(0) 推荐(0) 编辑
摘要: Born This Way原文链接:[传送门] 题目大意:潇洒哥想乘坐飞机从A地到达C地,但是没有直达的航班,在A地和B地之间有一个可以中转的航班B,潇洒哥想早点到达C地(有航班就坐),但是很不幸他得罪了大魔王黑大帅,他可以取消潇洒哥的航班有k次机会(毕竟费蓝)让潇洒哥最迟到达,现在给你n,m,ta 阅读全文
posted @ 2020-01-21 20:07 柒月是你的謊言 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 原文链接:任意门 题目大意:给你一组数,让你交换两个数的位置,让它们的和为奇数,且使其交换后,顺序满足最小字典序列。思路:这就是一道狗题,看代码,你就会******了,只需要sort排序。代码: 1 #include"iostream" 2 #include"algorithm" 3 #includ 阅读全文
posted @ 2020-01-21 20:02 柒月是你的謊言 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 原文链接:传送门思路:素数筛代码: 1 #include"iostream" 2 #include"algorithm" 3 #include"cstring" 4 using namespace std; 5 long long a[2000006],n; 6 int main(){ 7 cin> 阅读全文
posted @ 2020-01-21 19:58 柒月是你的謊言 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 原文链接:传送 1 #include"algorithm" 2 #include"iostream" 3 #include"cmath" 4 using namespace std; 5 long long x,y,z,ans; 6 int main(){ 7 while(cin>>x>>y>>z) 阅读全文
posted @ 2020-01-21 17:10 柒月是你的謊言 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 原文链接:https://codeforces.com/contest/1180/problem/B 题意:给你n个数,你要进行一次或者多次操作(操作的方式a[i]=-a[i]-1),让它们的乘积最大,当然也可以不进行操作,答案有多组。思路:根据(操作的方式a[i]=-a[i]-1),我们发现,正数 阅读全文
posted @ 2020-01-21 17:01 柒月是你的謊言 阅读(103) 评论(0) 推荐(0) 编辑
摘要: 原文链接https://codeforces.com/contest/1183/problem/B 题意:进行Q组测试,在每组中有长度为n的数组a[i],然后现在给你一个K,问你找到一个bi使得|ai-bi|<=k并且bi最大。如果找不到,就输出-1.思路:这个也就关系到,最大值max,最小值min 阅读全文
posted @ 2020-01-21 16:52 柒月是你的謊言 阅读(110) 评论(0) 推荐(0) 编辑