随笔分类 - online judge codeforces
摘要:C. Balls and Boxes time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output C. Balls and Boxes tim
阅读全文
摘要:1467: Pku3243 clever Y Description 小Y发现,数学中有一个很有趣的式子: X^Y mod Z = K 给出X、Y、Z,我们都知道如何很快的计算K。但是如果给出X、Z、K,你是否知道如何快速的计算Y呢? Input 本题由多组数据(不超过20组),每组测试数据包含一行
阅读全文
摘要:C. Guess Your Way Out! time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Amr bought a new v
阅读全文
摘要:D. Kostya the Sculptor time limit per test 3 seconds memory limit per test 256 megabytes input standard input output standard output Kostya is a genia
阅读全文
摘要:C. Epidemic in Monstropolis time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output There was an
阅读全文
摘要:A. Toda 2 题意:给你n个人,每个人的分数是a[i],每次可以从两个人到五个人的使得分数减一,使得最终的分数相等; 思路:假设答案为m;每个人的分数与答案m的差值为d[i],sum为d[i]的总和,max为d[i]的最大值;仅当sum-max>=max的时候才满足; 满足之后,总和为奇数,先
阅读全文
摘要:E. Parking Lot time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output A parking lot in the City
阅读全文
摘要:F. Video Cards time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Little Vlad is fond of pop
阅读全文
摘要:C. Socks time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output C. Socks time limit per test 2
阅读全文
摘要:C. Sanatorium time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Vasiliy spent his vacation
阅读全文
摘要:D. Exams time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output D. Exams time limit per test 1 s
阅读全文
摘要:E. Lucky Array time limit per test 4 seconds memory limit per test 256 megabytes input standard input output standard output Petya loves lucky numbers
阅读全文
摘要:C. Dreamoon and Sums time limit per test 1.5 seconds memory limit per test 256 megabytes input standard input output standard output Dreamoon loves su
阅读全文
摘要:C. Anya and Ghosts time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output C. Anya and Ghosts ti
阅读全文
摘要:D. Vasya and Chess time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output D. Vasya and Chess ti
阅读全文
摘要:C. Vasya and Basketball time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output C. Vasya and Bas
阅读全文
摘要:C. Polycarp at the Radio time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output C. Polycarp at
阅读全文
摘要:D. Lakes in Berland time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output The map of Berland i
阅读全文
摘要:C. Destroying Array time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output C. Destroying Array t
阅读全文
摘要:D. Generating Sets time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output You are given a set Y
阅读全文