Live2d Test Env
上一页 1 ··· 90 91 92 93 94 95 96 97 98 ··· 101 下一页
摘要: 宣之于口 阅读全文
posted @ 2017-09-27 21:06 nimphy 阅读(103) 评论(0) 推荐(0) 编辑
摘要: Accurately Say "CocaCola"!范围找到:1——700左右,然后打表就ok了#include#include#includeusing namespace std;bool a[810];int sum[810];int pos[810];void _judge(int v){ ... 阅读全文
posted @ 2017-09-27 21:06 nimphy 阅读(87) 评论(0) 推荐(0) 编辑
摘要: 题目要求FIFO#include#include#include#include#include#include#includeusing namespace std;struct in{ string name; int id; int dex; in(string s,int d,int x):... 阅读全文
posted @ 2017-09-27 21:06 nimphy 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 题意:两家原始人(猴)打交道后成为一家猴,打交道时两家分别派出最帅的两位猴子,颜值各自减半,问每次打交道后新家族最帅的猴子的颜值。当然,已经是一家子就没有必要打交道了,因为没有猴希望颜值降低,毕竟还得靠这个吃饭。裸裸的并查集+大根堆:由于在下写的queue,需要重量优化,不然超时#include#i... 阅读全文
posted @ 2017-09-27 21:06 nimphy 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 我想我是和Segmentation Fault有仇,我一直以为是空间开大的问题,然后一直减少空间,还是SF,谁让n没有给范围了,qwq。教训:以后注意输入范围和开的空间大小。#include#include#include#includeusing namespace std;int a[34000... 阅读全文
posted @ 2017-09-27 21:06 nimphy 阅读(126) 评论(0) 推荐(0) 编辑
摘要: ZOJ2105:点击打开链接错误代码#include#includeint q[110];int main(){ int a,b,n,T; while(~scanf("%d%d%d",&a,&b,&n)&&(a||b||n)... 阅读全文
posted @ 2017-09-27 21:06 nimphy 阅读(127) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/u014355480/article/details/40862041 ZOJ2091题意:其实就是找后几个数的平均值的最大值!! (贪心策略!要找对)k=1,... 阅读全文
posted @ 2017-09-27 21:06 nimphy 阅读(100) 评论(0) 推荐(0) 编辑
摘要: 分析: 组合数学类型的题目。 正常的话可能会去分解1~N数里面有几个5和2,但是这样的复杂度为O(nlogn)。 其实有更巧妙的办法,可以把问题分解成子问题。 可以发现N!末尾的0与1~N中有几个5的因子相同(因为2总是比5多)。 1~N中只有5的倍数包含5因子,比如[5, 10, 15, 20..... 阅读全文
posted @ 2017-09-27 21:06 nimphy 阅读(137) 评论(0) 推荐(0) 编辑
摘要: ZOJ2006(最小表示法) 题目大意:输出第一个字符串的最小字典序字串的下标!然后我居然想试一试string的erase的能力,暴力一下,然后20msAC了,尴尬的数据。。。。。。。。。。#include#incl... 阅读全文
posted @ 2017-09-27 21:06 nimphy 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 传送门:Zoj2002题目大意:从左到右把一排数字k分,得到最小化最大份,如果有多组解,左边的尽量小。思路:贪心+二分(参考青蛙过河)。方向:从右向左。注意:有可能最小化时不够k分。如 ... 阅读全文
posted @ 2017-09-27 21:06 nimphy 阅读(107) 评论(0) 推荐(0) 编辑
上一页 1 ··· 90 91 92 93 94 95 96 97 98 ··· 101 下一页