![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ACM__模拟
文章平均质量分 82
wust_zwl
学不死,就往死里学。
展开
-
codeforces 404B Marathon(模拟)
Valera takes part in the Berland Marathon. The marathon race starts at the stadium that can be represented on the plane as a square whose lower left corner is located at point with coordinates (0, 0) and the length of the side equals a meters. The sides of原创 2017-08-08 20:29:03 · 354 阅读 · 0 评论 -
poj 3517 And Then There Was One(约瑟夫问题)【模板】
Let’s play a stone removing game. Initially, n stones are arranged on a circle and numbered 1, …, n clockwise (Figure 1). You are also given two numbers k and m. From this state, remove stones one by one following the rules explained below, until only one原创 2017-08-08 20:34:11 · 363 阅读 · 0 评论 -
ZOJ 3519 Who is the Smartest Man (贪心)
Cao Cao is very pround of his newly finished book named "The Book of Mengde". He thinks the book contains all the wisdom of the world. But in order to prove this, he need to prove that he is the smartest people in the world first. In that age, people evalu原创 2017-08-08 20:40:38 · 322 阅读 · 0 评论 -
ZOJ 3804 YY's Minions(搜索+模拟)
Despite YY's so much homework, she would like to take some time to play with her minions first. YY lines her minions up to an N*M matrix. Every minion has two statuses: awake or asleep. We use 0(the digit) to represent that it is asleep, and 1 for awake.原创 2017-08-06 19:13:19 · 282 阅读 · 0 评论 -
codeforces 305A Strange Addition (模拟)
Unfortunately, Vasya can only sum pairs of integers (a, b), such that for any decimal place at least one number has digit 0 in this place. For example, Vasya can sum numbers 505 and 50, but he cannot sum 1 and 4. Vasya has a set of k distinct non-negative原创 2017-08-15 19:34:30 · 310 阅读 · 0 评论 -
codeforces 431B Tell Your World(两平行线穿过所有点)【模板】
Connect the countless points with lines, till we reach the faraway yonder. There are n points on a coordinate plane, the i-th of which being (i, yi). Determine whether it's possible to draw two parallel and non-overlapping lines, such that every point in原创 2017-09-03 17:08:44 · 736 阅读 · 0 评论