摘要:
将1,2,...,9共9个数排成下列形态的三角形。 a b c d e f g h i 其中:a~i分别表示1,2,...,9中的一个数字,并要求同时满足下列条件: (1)a<f<i; (2)b<d, g<h, c<e (3)a+b+d+f=f+g+h+i=i+e+c+a=P 程序要求:根据输入的边 阅读全文
摘要:
B. Balanced Substring You are given a string s consisting only of characters 0 and 1. A substring [l, r] of s is a string slsl + 1sl + 2... sr, and it 阅读全文
摘要:
B. Ordering Pizza It's another Start[c]up finals, and that means there is pizza to order for the onsite contestants. There are only 2 types of pizza ( 阅读全文
摘要:
F. Cities Excursions F. Cities Excursions There are n cities in Berland. Some pairs of them are connected with m directed roads. One can use only thes 阅读全文
摘要:
E. Fire http://codeforces.com/problemset/problem/864/E Polycarp is in really serious trouble — his house is on fire! It's time to save the most valuab 阅读全文
摘要:
gym 101192 F. Stone, grass and fire http://codeforces.com/gym/101192/problem/F Farmer Lyosha owns a rectangular field. The field has n rows and m colu 阅读全文