摘要:
And Then There Was One https://vjudge.net/problem/UVALive-3882 题目大意:n个数编号1..n排成一圈,第一次删除m,后来每k个删除一个(下一次删除m + k....),问最后剩下哪一个? 先考从0开始数,每k个删除一个。设f[i]表示共有 阅读全文
摘要:
Emoogle Grid You have to color an M × N (1 ≤ M, N ≤ 108 ) two dimensional grid. You will be provided K (2 ≤ K ≤ 108 ) different colors to do so. You w 阅读全文
摘要:
Triangle Counting 题目大意:给定n,n >= 3,求用1,2,3,...,n-1,n这些木棒能拼出的三角形个数 尝试设三条边为x,y,z,发现仅通过x + y < z, x - y < z无法找到解题方向 不妨再加一些附加条件,设x为最大边长度,就有x - y < z < x,只需 阅读全文
摘要:
Jurassic Remains https://vjudge.net/problem/UVALive-2965 Paleontologists in Siberia have recently found a number of fragments of Jurassic period dinos 阅读全文
摘要:
Distant Galaxy https://vjudge.net/problem/UVALive-3695 You are observing a distant galaxy using a telescope above the Astronomy Tower, and you think t 阅读全文
摘要:
Calculator Conundrum Alice got a hold of an old calculator that can display n digits. She was bored enough to come up with the following time waster. 阅读全文
摘要:
Beijing Guards Beijing was once surrounded by four rings of city walls: the Forbidden City Wall, the Imperial City Wall, the Inner City Wall, and fina 阅读全文
摘要:
Network Consider a tree network with n nodes where the internal nodes correspond to servers and the terminal nodes correspond to clients. The nodes ar 阅读全文
摘要:
A Different Task https://vjudge.net/problem/UVA-10795 题目大意:给定一个汉诺塔初末状态,求从初状态到末状态最少需要多少步。 考虑最大的一个初末不同盘子,设这个盘子为k,初始在start[k],终止在final[k] 比k大的盘子一定在正确位置且在 阅读全文
摘要:
2018年1月14日,气温回升。重回OI第一天,趁中午时分,补全滚粗记。 Day -1 上午打完模拟赛,下午改了改题,晚上跟学校高三级部的Oier一起颓....... Day 0 启程出发,看到了SSFZ和SSY的一大波人马,瑟瑟发抖 下午四点左右到达日照一中,还是熟悉的味道。抽签,我们学校有四个人 阅读全文