摘要: Vladik had started reading a complicated book about algorithms containing n pages. To improve understanding of what is written, his friends advised hi 阅读全文
posted @ 2019-01-17 23:11 茄子Min 阅读(276) 评论(0) 推荐(0) 编辑
摘要: This is an interactive problem. In the output section below you will see the information about flushing the output. On Sunday Leha the hacker took Nur 阅读全文
posted @ 2019-01-17 21:30 茄子Min 阅读(283) 评论(0) 推荐(0) 编辑
摘要: Summer holidays! Someone is going on trips, someone is visiting grandparents, but someone is trying to get a part-time job. This summer Noora decided 阅读全文
posted @ 2019-01-17 12:20 茄子Min 阅读(390) 评论(0) 推荐(0) 编辑
摘要: I - Coins Time Limit: 2 sec / Memory Limit: 1024 MB Score : 100100 points Problem Statement Let NN be a positive odd number. There are NN coins, numbe 阅读全文
posted @ 2019-01-16 23:26 茄子Min 阅读(536) 评论(0) 推荐(0) 编辑
摘要: E. Selling Souvenirs time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output E. Selling Souvenir 阅读全文
posted @ 2019-01-16 17:58 茄子Min 阅读(370) 评论(0) 推荐(0) 编辑
摘要: Vasya has an array a consisting of positive integer numbers. Vasya wants to divide this array into two non-empty consecutive parts (the prefix and the 阅读全文
posted @ 2019-01-16 15:48 茄子Min 阅读(353) 评论(0) 推荐(0) 编辑
摘要: Polycarp invited all his friends to the tea party to celebrate the holiday. He has ncups, one for each of his n friends, with volumes a1, a2, ..., an. 阅读全文
posted @ 2019-01-16 14:49 茄子Min 阅读(344) 评论(0) 推荐(0) 编辑
摘要: F - LCS Time Limit: 2 sec / Memory Limit: 1024 MB Score : 100100 points Problem Statement You are given strings ss and tt. Find one longest string tha 阅读全文
posted @ 2019-01-16 12:56 茄子Min 阅读(750) 评论(0) 推荐(0) 编辑
摘要: E - Knapsack 2 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-15 23:26 茄子Min 阅读(986) 评论(0) 推荐(1) 编辑
摘要: It's been almost a week since Polycarp couldn't get rid of insomnia. And as you may already know, one week in Berland lasts k days! When Polycarp went 阅读全文
posted @ 2019-01-15 22:15 茄子Min 阅读(351) 评论(0) 推荐(0) 编辑