
模拟大法
so_so_y
start to record bugs <- so hard so brave
展开
-
山东省第一届ACM省赛 Fairy tale(模拟)
Problem DescriptionIt is said that in a school’s underground, there is a huge treasure which can meet any desire of the owner. The Spy Union (SU) is very interest in this legend. After much investigati原创 2017-04-25 19:22:03 · 700 阅读 · 0 评论 -
打印图形
这是友人A给推的题目,看一眼‘奥这不是很简单’,‘奥好呀你去敲呀’,‘好的这还会很难敲?我敲给你看’,‘嗯……再给我点时间’我一点er都不丢人+智障……接下来:题目大意 1 1 A 2 3 AAA AAA 5 7 AAAAAAA ABBBBBA ABCCCBA ABBBBBA AAAAAAA 4 6 AAAAAA ABBBBA ABBBBA AAAAAA 如上所示原创 2017-03-27 19:49:37 · 546 阅读 · 0 评论 -
Codeforces Round #436 (Div. 2) C. Bus
DescriptionA bus moves along the coordinate line Ox from the point x = 0 to the point x = a. After starting from the point x = 0, it reaches the point x = a, immediately turns back and then moves to th原创 2017-10-02 21:17:32 · 502 阅读 · 0 评论 -
51nod 求递推序列的第N项(矩阵快速幂、模拟求循环长度)
Description有一个序列是这样定义的:f(1) = 1, f(2) = 1, f(n) = (A * f(n - 1) + B * f(n - 2)) mod 7. 给出A,B和N,求f(n)的值。Input输入3个数:A,B,N。数字之间用空格分割。(-10000 <= A, B <= 10000, 1 <= N <= 10^9)Output输出f(n)的值。Input示例3 -1 5原创 2017-10-14 11:11:56 · 255 阅读 · 0 评论 -
Codeforces Good Bye 2016 C. New Year and Rating(模拟)
DescriptionEvery Codeforces user has rating, described with one integer, possibly negative or zero. Users are divided into two divisions. The first division is for users with rating 1900 or higher. Tho原创 2017-11-21 22:25:52 · 343 阅读 · 0 评论 -
CodeForces - 845D Driving Test(模拟,栈)
Description Polycarp has just attempted to pass the driving test. He ran over the straight road with the signs of four types. speed limit: this sign comes with a positive integer number — maximal sp...原创 2018-02-16 13:44:21 · 379 阅读 · 0 评论 -
51nod 1572 宝岛地图(预处理+模拟)
Description 勇敢的水手们到达了一个小岛,在这个小岛上,曾经有海盗在这里埋下了一些宝藏。然而,我们的船快抛锚了,与此同时,船长发现藏宝图的一角被老鼠咬掉了一块。 藏宝图可以用一个n×m大小的矩形表示。矩形中的每一小块表示小岛中的一小块陆地(方块的边长为1米)。有一些方块表示的是海,这些块人是不能通过的。除了海不能走,其它的小方块都是可以行走的。在可行走区域里有一些小方块表示一些已知的...原创 2018-02-16 22:58:28 · 189 阅读 · 0 评论 -
山东省第六届ACM省赛 Lowest Unique Price(模拟)
Problem Description Recently my buddies and I came across an idea! We want to build a website to sell things in a new way. For each product, everyone could bid at a price, or cancel his previous bid...原创 2018-04-27 11:18:18 · 154 阅读 · 0 评论