摘要: You are policeman and you are playing a game with Slavik. The game is turn-based and each turn consists of two phases. During the first phase you make 阅读全文
posted @ 2019-01-10 23:42 茄子Min 阅读(648) 评论(0) 推荐(0)
摘要: D - Knapsack 1 Time Limit: 2 sec / Memory Limit: 1024 MB Score : 100100 points Problem Statement There are NN items, numbered 1,2,…,N1,2,…,N. For each 阅读全文
posted @ 2019-01-10 20:10 茄子Min 阅读(566) 评论(0) 推荐(0)
摘要: C - Vacation Time Limit: 2 sec / Memory Limit: 1024 MB Score : 100100 points Problem Statement Taro's summer vacation starts tomorrow, and he has deci 阅读全文
posted @ 2019-01-10 19:40 茄子Min 阅读(741) 评论(0) 推荐(0)
摘要: B - Frog 2 Time Limit: 2 sec / Memory Limit: 1024 MB Score : 100100 points Problem Statement There are NN stones, numbered 1,2,…,N1,2,…,N. For each ii 阅读全文
posted @ 2019-01-09 23:20 茄子Min 阅读(605) 评论(0) 推荐(0)
摘要: A - Frog 1 Time Limit: 2 sec / Memory Limit: 1024 MB Score : 100100 points Problem Statement There are NN stones, numbered 1,2,…,N1,2,…,N. For each ii 阅读全文
posted @ 2019-01-09 22:52 茄子Min 阅读(1077) 评论(0) 推荐(0)
摘要: A few years ago Sajjad left his school and register to another one due to security reasons. Now he wishes to find Amir, one of his schoolmates and goo 阅读全文
posted @ 2019-01-09 21:10 茄子Min 阅读(287) 评论(0) 推荐(0)
摘要: In the beginning of the new year Keivan decided to reverse his name. He doesn't like palindromes, so he changed Naviek to Navick. He is too selfish, s 阅读全文
posted @ 2019-01-09 21:01 茄子Min 阅读(259) 评论(0) 推荐(0)
摘要: Tavak and Seyyed are good friends. Seyyed is very funny and he told Tavak to solve the following problem instead of longest-path. You are given l and  阅读全文
posted @ 2019-01-09 20:50 茄子Min 阅读(290) 评论(0) 推荐(0)
摘要: The main city magazine offers its readers an opportunity to publish their ads. The format of the ad should be like this: There are space-separated non 阅读全文
posted @ 2019-01-09 15:36 茄子Min 阅读(318) 评论(0) 推荐(0)
摘要: C. Maximal GCD time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output C. Maximal GCD time limit 阅读全文
posted @ 2019-01-08 21:33 茄子Min 阅读(273) 评论(0) 推荐(0)