随笔分类 - CF
摘要:链接:http://codeforces.com/problemset/problem/632/C 思路:思路很快想到了,但是被sort坑了,对于sort的自定义比较函数,记住 对于相等的值一定要返回flase 附上别的大佬的验证:https://blog.csdn.net/xhu_eternalc
阅读全文
摘要:恢复内容开始 Kurt reaches nirvana when he finds the product of all the digits of some positive integer. Greater value of the product makes the nirvana deepe
阅读全文
摘要:恢复内容开始 You are given a rooted tree with vertices numerated from 11 to nn . A tree is a connected graph without cycles. A rooted tree has a special ver
阅读全文
摘要:恢复内容开始 You are given a tube which is reflective inside represented as two non-coinciding, but parallel to OxOx lines. Each line has some special integ
阅读全文
摘要:output standard output output A plane is flying at a constant height of hh meters above the ground surface. Let's consider that it is flying from the
阅读全文
摘要:Quite often the jury of Saratov SU use the problem "Masquerade" in different practice sessions before the contest. This problem is quite easy — all yo
阅读全文
摘要:There is a beautiful fence near Monocarp's house. The fence consists of nn planks numbered from left to right. The ii -th plank has color aiai . Monoc
阅读全文
摘要:恢复内容开始 Monocarp has drawn a tree (an undirected connected acyclic graph) and then has given each vertex an index. All indices are distinct numbers fro
阅读全文
摘要:D. Petya and Array time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Petya has an array aa
阅读全文
摘要:odeforces 1051 D. Bicolorings (DP) D. Bicolorings time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standa
阅读全文
摘要:C. A Mist of Florescence time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output As the boat drif
阅读全文

浙公网安备 33010602011771号