摘要: It's raining outside. Farmer Johnson's bull Ben wants some rain to water his flowers. Ben nails two wooden boards on the wall of his barn. Shown in th 阅读全文
posted @ 2017-11-08 19:12 诚信肥宅 阅读(160) 评论(0) 推荐(0) 编辑
摘要: C. Short Program time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Petya learned a new pro 阅读全文
posted @ 2017-10-27 18:03 诚信肥宅 阅读(715) 评论(0) 推荐(0) 编辑
摘要: Calculate the number of toys that land in each bin of a partitioned toy box. Mom and dad have a problem - their child John never puts his toys away wh 阅读全文
posted @ 2017-10-25 19:59 诚信肥宅 阅读(182) 评论(0) 推荐(0) 编辑
摘要: LsF is visiting a local amusement park with his friends, and a mirror room successfully attracts his attention. Inside the mirror room, there are n pl 阅读全文
posted @ 2017-10-23 20:18 诚信肥宅 阅读(331) 评论(0) 推荐(0) 编辑
摘要: D. Office Keys time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output There are n people and k  阅读全文
posted @ 2017-07-28 10:27 诚信肥宅 阅读(215) 评论(0) 推荐(0) 编辑
摘要: Genos needs your help. He was asked to solve the following programming problem by Saitama: The length of some string s is denoted |s|. The Hamming dis 阅读全文
posted @ 2017-07-06 16:57 诚信肥宅 阅读(254) 评论(0) 推荐(0) 编辑
摘要: Solve the equation:p∗e−x + q∗sin(x) + r∗cos(x) + s∗tan(x) + t∗x2 + u = 0where 0 ≤ x ≤ 1.InputInput consists of multiple test cases and terminated by a 阅读全文
posted @ 2017-07-06 14:27 诚信肥宅 阅读(170) 评论(0) 推荐(0) 编辑
摘要: A palindrome is a word, number, or phrase that reads the same forwards as backwards. For example, the name “anna” is a palindrome. Numbers can also be 阅读全文
posted @ 2017-07-06 14:10 诚信肥宅 阅读(164) 评论(0) 推荐(0) 编辑
摘要: Watchmen are in a danger and Doctor Manhattan together with his friend Daniel Dreiberg should warn them as soon as possible. There are n watchmen on a 阅读全文
posted @ 2017-07-06 13:36 诚信肥宅 阅读(194) 评论(0) 推荐(0) 编辑
摘要: On the way to school, Karen became fixated on the puzzle game on her phone! The game is played as follows. In each level, you have a grid with n rows 阅读全文
posted @ 2017-06-18 11:00 诚信肥宅 阅读(296) 评论(0) 推荐(0) 编辑