随笔分类 -  **比赛**

摘要:A. Short Program 很巧妙的处理方式,用0和1023来记录 1 #include <bits/stdc++.h> 2 using namespace std; 3 4 int main(){ 5 int n; 6 scanf("%d", &n); 7 char s[3]; 8 int 阅读全文
posted @ 2017-10-31 22:58 yijiull 阅读(112) 评论(0) 推荐(0)
摘要:链接:here Car HDU - 5935 精度问题有点迷。。。 不知道为什么用ceil就是过不了。。。 1 #include <bits/stdc++.h> 2 using namespace std; 3 #define LL long long 4 const int maxn = 1000 阅读全文
posted @ 2017-10-27 21:22 yijiull 阅读(140) 评论(0) 推荐(0)
摘要:CF877 链接 D. Olya and Energy Drinks bfs 1 #include <bits/stdc++.h> 2 using namespace std; 3 const int maxn =1010; 4 5 char mp[maxn][maxn]; 6 int vis[ma 阅读全文
posted @ 2017-10-25 18:22 yijiull 阅读(138) 评论(0) 推荐(0)
摘要:题目链接:here Convex HDU - 5979 可能是最水的一道题了,用了很麻烦的做法..... Find Small A HDU - 5980 签到题 1 #include <bits/stdc++.h> 2 using namespace std; 3 #define LL long l 阅读全文
posted @ 2017-10-21 18:53 yijiull 阅读(136) 评论(0) 推荐(0)
摘要:题目链接:here Text Editor Gym - 101504F emmm...又是链表都写不溜=_=|| 1 #include <bits/stdc++.h> 2 using namespace std; 3 const int maxn = 1e6+10; 4 int L[maxn], R 阅读全文
posted @ 2017-10-15 22:57 yijiull 阅读(127) 评论(0) 推荐(0)
摘要:题目链接:here Emptying the Baltic Kattis - emptyingbaltic 题意:问给定位置的抽水机需要排多少水(水从高往低流)。 类似最短路~ 1 /********************************************************** 阅读全文
posted @ 2017-10-15 11:26 yijiull 阅读(169) 评论(0) 推荐(0)
摘要:题目:链接 题解:链接 Candle Box Gym - 101174C 整场就写了这一道题还手残交错题WA两发... 1 #include <bits/stdc++.h> 2 using namespace std; 3 4 int main() { 5 int d, r, t; 6 scanf( 阅读全文
posted @ 2017-10-06 22:28 yijiull 阅读(146) 评论(0) 推荐(0)
摘要:2015-2016 Northwestern European Regional Contest (NWERC 2015) 2015-2016 Northwestern European Regional Contest (NWERC 2015) 2015-2016 Northwestern Eur 阅读全文
posted @ 2017-10-03 19:16 yijiull 阅读(162) 评论(0) 推荐(0)
摘要:2016-2017 ACM-ICPC Pacific Northwest Regional Contest (Div. 1) 题解:链接 Tournament Wins Gym - 101201K 题意: 2^k个人,你排名第r, 问你能赢的期望次数. 至少赢 i 次的概率是 C(2^i-1, 2^ 阅读全文
posted @ 2017-10-03 19:07 yijiull 阅读(200) 评论(0) 推荐(0)
摘要:G. Finding the Radius for an Inserted Circle 题目:链接 让求第k个内切圆的半径 r[k] 这题我们没做出来,主要是因为我发现的太晚了...... 一开始看到的时候觉得图看起来太复杂就没去看.... 最后还剩二十分钟的时候开始做,本来应该也是可以过的,结果 阅读全文
posted @ 2017-09-24 18:27 yijiull 阅读(180) 评论(0) 推荐(0)
摘要:接连爆炸... A Cubic number and A Cubic Number HDU - 6216 题意:给素数p,问是否存在两个数的立方差等于x. a3-b3立方差公式展开得(a-b)*(a2+ab+b2) == p p是素数,所以a-b等于1,于是可以得到3a2+3a+1 == p 即 a 阅读全文
posted @ 2017-09-17 18:03 yijiull 阅读(245) 评论(0) 推荐(0)
摘要:这场比赛我就套模板给队友就打了个表=_= 我们最后一共就过了三道题... dalao们都好强~ C. Sum 一开始以为是数论(最近碰到过相似的),看大家都那么快过有点懵逼...然后队友搞过了~ 1 #include <bits/stdc++.h> 2 using namespace std; 3 阅读全文
posted @ 2017-09-16 18:50 yijiull 阅读(171) 评论(0) 推荐(0)