
ACM 思考题
碳酸钙的01妖精
这个作者很懒,什么都没留下…
展开
-
BZOJ-2456 mode(替换抵消思想)
2456: mode Time Limit: 1 Sec Memory Limit: 1 MB Submit: 7146 Solved: 2809 [Submit][Status][Discuss] Description 给你一个n个数的数列,其中某个数出现了超过n div 2次即众数,请你找出那个数。 Input 第1行一个正整数n。 第2行n个正整数用空格隔开。 Output...原创 2018-08-03 14:20:30 · 162 阅读 · 0 评论 -
L1-032 Left-pad(分类讨论思想)
L1-032 Left-pad(分类讨论思想) 根据新浪微博上的消息,有一位开发者不满NPM(Node Package Manager)的做法,收回了自己的开源代码,其中包括一个叫left-pad的模块,就是这个模块把javascript里面的React/Babel干瘫痪了。这是个什么样的模块?就是在字符串前填充一些东西到一定的长度。例如用“*”去填充字符串“GPLT”,使之长度为10,调...原创 2018-03-05 21:19:54 · 133 阅读 · 0 评论 -
UVALive - 7198 Tall orders (构造函数等式二分求参数)
You have been charged with evaluating the safety of power cables passing over train tracks. Owing to the recent purchase of the new Macho 10000 trains, the questions has been raised as to whether the ...原创 2018-08-21 22:33:21 · 300 阅读 · 0 评论 -
Gym - 101810 I. Split the Number(拆分差最小)
I. Split the Number time limit per test 1.0 s memory limit per test 256 MB input standard input output standard output You are given an integer x. Your task is to split the number x into exac...原创 2018-08-21 22:43:49 · 358 阅读 · 0 评论 -
HDU-5510 Bazinga(strstr找子串)
Bazinga Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 7141 Accepted Submission(s): 2188 Problem Description Ladies an...原创 2018-09-23 13:33:50 · 219 阅读 · 0 评论 -
HDU-5512 Pagodas(找最大公约数)
Pagodas Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 3075 Accepted Submission(s): 2071 Problem Description n pagoda...原创 2018-09-23 13:35:39 · 168 阅读 · 0 评论 -
图的m着色问题
1575.图的m着色问题 时限:1000ms 内存限制:10000K 总时限:3000ms 描述 给定无向连通图G和m种不同的颜色。用这些颜色为图G的各顶点着色,每个顶点着一种颜色。如果有一种着色法使G中每条边的2个顶点着不同颜色,则称这个图是m可着色的。图的m着色问题是对于给定图G和m种颜色,找出所有不同的着色法。 输入 第1行有3个正整数n,r 和m(n < 20,r ...原创 2018-09-27 22:58:47 · 570 阅读 · 0 评论 -
POJ-3154 Graveyard(四舍五入法)
Programming contests became so popular in the year 2397 that the governor of New Earck — the largest human-inhabited planet of the galaxy — opened a special Alley of Contestant Memories (ACM) at the l...原创 2018-10-14 16:09:53 · 236 阅读 · 0 评论