02 2017 档案
摘要:Description Little Nastya has a hobby, she likes to remove some letters from word, to obtain another word. But it turns out to be pretty hard for her,
阅读全文
摘要:Description Igor found out discounts in a shop and decided to buy n items. Discounts at the store will last for a week and Igor knows about each item
阅读全文
摘要:Description Polycarp is crazy about round numbers. He especially likes the numbers divisible by 10k. In the given number of n Polycarp wants to remove
阅读全文
摘要:Description In Berland each high school student is characterized by academic performance — integer value between 1 and 5. In high school 0xFF there ar
阅读全文
摘要:#include using namespace std; #define ll long long ll a[200000]; ll d[200000]; int main() { ll n; ll sum=0; cin>>n; for(int i=0;i>a[i]; sum+=a[i]; } for(int i=0;i #i...
阅读全文
摘要:Misha and Vanya have played several table tennis sets. Each set consists of several serves, each serve is won by one of the players, he receives one p
阅读全文
摘要:Description Kostya likes Codeforces contests very much. However, he is very disappointed that his solutions are frequently hacked. That's why he decid
阅读全文
摘要:Description There are literally dozens of snooker competitions held each year, and team Jinotega tries to attend them all (for some reason they prefer
阅读全文
摘要:A - ABC/ARC Time limit : 2sec / Memory limit : 256MB Score : 100 points Problem Statement Smeke has decided to participate in AtCoder Beginner Contest
阅读全文
摘要:A - One Card Poker Time limit : 2sec / Memory limit : 256MB Score : 100 points Problem Statement Alice and Bob are playing One Card Poker.One Card Pok
阅读全文