摘要:Educational Codeforces Round 35 (Rated for Div. 2) https://codeforces.com/contest/911 A 模拟 1 #include<bits/stdc++.h> 2 using namespace std; 3 #define
阅读全文
摘要:Codeforces Round #485 (Div. 2) https://codeforces.com/contest/987 A 1 #include<bits/stdc++.h> 2 using namespace std; 3 #define lson l,mid,rt<<1 4 #def
阅读全文
摘要:Codeforces Round #491 (Div. 2) https://codeforces.com/contest/991 A 1 #include<bits/stdc++.h> 2 using namespace std; 3 #define lson l,mid,rt<<1 4 #def
阅读全文
摘要:Codeforces Round #493 (Div. 2) https://codeforces.com/contest/998/my A 1 #include<bits/stdc++.h> 2 using namespace std; 3 #define lson l,mid,rt<<1 4 #
阅读全文
摘要:Codeforces Round #497 (Div. 2) https://codeforces.com/contest/1008 A 1 #include<bits/stdc++.h> 2 using namespace std; 3 #define lson l,mid,rt<<1 4 #de
阅读全文
摘要:Codeforces Round #499 (Div. 2) https://codeforces.com/contest/1011 A 1 #include <bits/stdc++.h> 2 using namespace std; 3 int n,k,i,j,p,r,a[179]; 4 str
阅读全文
摘要:Codeforces Round #500 (Div. 2) [based on EJOI] https://codeforces.com/contest/1013 A 1 #include<bits/stdc++.h> 2 using namespace std; 3 #define lson l
阅读全文
摘要:Codeforces Round #508 (Div. 2) http://codeforces.com/contest/1038 A 1 #include<bits/stdc++.h> 2 using namespace std; 3 #define lson l,mid,rt<<1 4 #def
阅读全文
摘要:Codeforces Round #449 (Div. 2) https://codeforces.com/contest/897 A 1 #include<bits/stdc++.h> 2 using namespace std; 3 #define lson l,mid,rt<<1 4 #def
阅读全文
摘要:Willem, Chtholly and Seniorious https://codeforces.com/contest/897/problem/E time limit per test 2 seconds memory limit per test 256 megabytes input s
阅读全文
摘要:Codeforces Round #503 (by SIS, Div. 2) https://codeforces.com/contest/1020 A 1 #include <iostream> 2 #include <cstring> 3 #include <cmath> 4 #include
阅读全文
摘要:Codeforces Round #510 (Div. 2) https://codeforces.com/contest/1042 A 二分 1 #include<iostream> 2 using namespace std; 3 #define lson l,mid,rt<<1 4 #defi
阅读全文
摘要:免费送气球 http://acm.hdu.edu.cn/showproblem.php?pid=6464 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(
阅读全文
摘要:zyb的面试 http://acm.hdu.edu.cn/showproblem.php?pid=6468 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission
阅读全文
摘要:Codeforces Round #514 (Div. 2) https://codeforces.com/contest/1059 A 1 #include<bits/stdc++.h> 2 using namespace std; 3 #define lson l,mid,rt<<1 4 #de
阅读全文
摘要:Maximum GCD https://vjudge.net/contest/288520#problem/V Given the N integers, you have to find the maximum GCD (greatest common divisor) of every poss
阅读全文
摘要:Harmonic Number https://vjudge.net/contest/288520#problem/I In mathematics, the nth harmonic number is the sum of the reciprocals of the first n natur
阅读全文
摘要:Codeforces Round #516 (Div. 2, by Moscow Team Olympiad) https://codeforces.com/contest/1064 A 1 #include<bits/stdc++.h> 2 #define pb push_back 3 using
阅读全文
摘要:Sigma Function https://vjudge.net/contest/288520#problem/D Sigma function is an interesting function in Number Theory. It is denoted by the Greek lett
阅读全文
摘要:Leading and Trailing https://vjudge.net/contest/288520#problem/E You are given two integers: n and k, your task is to find the most significant three
阅读全文
摘要:Codeforces Round #518 (Div. 2) [Thanks, Mail.Ru!] https://codeforces.com/contest/1068 A 1 #include<bits/stdc++.h> 2 using namespace std; 3 #define lso
阅读全文
摘要:Codeforces Round #520 (Div. 2) https://codeforces.com/contest/1062 A 1 #include<bits/stdc++.h> 2 using namespace std; 3 #define lson l,mid,rt<<1 4 #de
阅读全文
摘要:Aladdin and the Flying Carpet https://cn.vjudge.net/contest/288520#problem/C It's said that Aladdin had to solve seven mysteries before getting the Ma
阅读全文
摘要:Codeforces Round #257 (Div. 2) https://codeforces.com/contest/450/ A 模拟 1 #include<bits/stdc++.h> 2 using namespace std; 3 #define lson l,mid,rt<<1 4
阅读全文
摘要:Codeforces Round #450 (Div. 2) http://codeforces.com/contest/900 A 1 #include<bits/stdc++.h> 2 using namespace std; 3 #define lson l,mid,rt<<1 4 #defi
阅读全文
摘要:吉哥系列故事——恨7不成妻 http://acm.hdu.edu.cn/showproblem.php?pid=4507 Time Limit: 1000/500 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others)Total Subm
阅读全文
摘要:Codeforces Round #546 (Div. 2) http://codeforces.com/contest/1136 A 1 #include<bits/stdc++.h> 2 using namespace std; 3 #define lson l,mid,rt<<1 4 #def
阅读全文
摘要:Balanced Numbers https://vjudge.net/contest/287810#problem/K Balanced numbers have been used by mathematicians for centuries. A positive integer is co
阅读全文
摘要:XHXJ's LIS http://acm.hdu.edu.cn/showproblem.php?pid=4352 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submis
阅读全文
摘要:Balanced Number http://acm.hdu.edu.cn/showproblem.php?pid=3709 Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 65535/65535 K (Java/Others)Total
阅读全文
摘要:Codeforces Beta Round #79 (Div. 2 Only) http://codeforces.com/contest/102 A 1 #include<bits/stdc++.h> 2 using namespace std; 3 #define lson l,mid,rt<<
阅读全文
摘要:Round Numbers http://poj.org/problem?id=3252 Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 17293 Accepted: 7188 Description The cows, as
阅读全文
摘要:F(x) http://acm.hdu.edu.cn/showproblem.php?pid=4734 Time Limit: 1000/500 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s)
阅读全文
摘要:不要62 http://acm.hdu.edu.cn/showproblem.php?pid=2089 Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s
阅读全文
摘要:Codeforces Beta Round #77 (Div. 2 Only) http://codeforces.com/contest/96 A 1 #include<bits/stdc++.h> 2 using namespace std; 3 #define lson l,mid,rt<<1
阅读全文
摘要:牛客小白月赛12 https://ac.nowcoder.com/acm/contest/392#question 华华听月月唱歌 贪心 1 #include<bits/stdc++.h> 2 using namespace std; 3 #define lson l,mid,rt<<1 4 #de
阅读全文
摘要:Codeforces Beta Round #76 (Div. 2 Only) http://codeforces.com/contest/94 A 1 #include<bits/stdc++.h> 2 using namespace std; 3 #define lson l,mid,rt<<1
阅读全文
摘要:Codeforces Beta Round #75 (Div. 2 Only) http://codeforces.com/contest/92 A 1 #include<iostream> 2 using namespace std; 3 #define lson l,mid,rt<<1 4 #d
阅读全文
摘要:Codeforces Beta Round #74 (Div. 2 Only) http://codeforces.com/contest/90 A 1 #include<iostream> 2 using namespace std; 3 #define lson l,mid,rt<<1 4 #d
阅读全文
摘要:Nim http://poj.org/problem?id=2975 Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 7233 Accepted: 3437 Description Nim is a 2-player game f
阅读全文
摘要:Matches Game http://poj.org/problem?id=2234 Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 12309 Accepted: 7172 Description Here is a simp
阅读全文
摘要:Codeforces Beta Round #73 (Div. 2 Only) http://codeforces.com/contest/88 A 模拟 1 #include<bits/stdc++.h> 2 using namespace std; 3 #define lson l,mid,rt
阅读全文
摘要:Fibonacci again and again http://acm.hdu.edu.cn/showproblem.php?pid=1848 Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Othe
阅读全文
摘要:Codeforces Beta Round #72 (Div. 2 Only) http://codeforces.com/contest/84 A 1 #include<bits/stdc++.h> 2 using namespace std; 3 #define lson l,mid,rt<<1
阅读全文
摘要:Codeforces Beta Round #70 (Div. 2) http://codeforces.com/contest/78 A 1 #include<bits/stdc++.h> 2 using namespace std; 3 #define lson l,mid,rt<<1 4 #d
阅读全文
摘要:Codeforces Beta Round #69 (Div. 2 Only) http://codeforces.com/contest/80 A 1 #include<bits/stdc++.h> 2 using namespace std; 3 #define lson l,mid,rt<<1
阅读全文
摘要:Codeforces Beta Round #67 (Div. 2) http://codeforces.com/contest/75 A 1 #include<bits/stdc++.h> 2 using namespace std; 3 #define lson l,mid,rt<<1 4 #d
阅读全文
摘要:Codeforces Beta Round #65 (Div. 2) http://codeforces.com/contest/71 A 1 #include<bits/stdc++.h> 2 using namespace std; 3 #define lson l,mid,rt<<1 4 #d
阅读全文
摘要:UmBasketella http://poj.org/problem?id=3737 Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 9489 Accepted: 3674 Description In recent days,
阅读全文
摘要:Codeforces Beta Round #63 (Div. 2) http://codeforces.com/contest/69 A 1 #include<bits/stdc++.h> 2 using namespace std; 3 #define lson l,mid,rt<<1 4 #d
阅读全文
摘要:Codeforces Beta Round #61 (Div. 2) http://codeforces.com/contest/66 A 输入用long double 1 #include<bits/stdc++.h> 2 using namespace std; 3 #define lson l
阅读全文