https://www.luogu.com.cn/problem/P1654
https://www.luogu.com.cn/problem/P4745
https://www.luogu.com.cn/problem/P1291
https://www.luogu.com.cn/problem/P4457
https://www.luogu.com.cn/problem/P4206
https://www.luogu.com.cn/problem/P1850
https://www.luogu.com.cn/problem/P4550
https://www.luogu.com.cn/problem/P3232
https://www.luogu.com.cn/problem/P3600
https://www.luogu.com.cn/problem/P3802
https://www.luogu.com.cn/problem/P4316
https://codeforces.com/contest/24/problem/D
https://codeforces.com/contest/1139/problem/D
https://codeforces.com/contest/518/problem/D
https://codeforces.com/contest/626/problem/D
https://ac.nowcoder.com/acm/contest/4643/D
https://ac.nowcoder.com/acm/contest/4643/C
https://ac.nowcoder.com/acm/contest/11172/D
https://ac.nowcoder.com/acm/contest/3782/D
https://www.luogu.com.cn/problem/UVA12177
https://www.luogu.com.cn/problem/UVA1639
https://www.luogu.com.cn/problem/UVA12411
https://www.luogu.com.cn/problem/UVA11762
https://www.luogu.com.cn/problem/UVA11722
https://www.luogu.com.cn/problem/UVA11021
https://www.luogu.com.cn/problem/UVA11181
https://www.luogu.com.cn/problem/UVA10491
https://www.luogu.com.cn/problem/UVA10900
https://www.luogu.com.cn/problem/UVA12230
https://www.luogu.com.cn/problem/UVA1636
https://www.luogu.com.cn/problem/SP1026
https://www.acwing.com/problem/content/219/
https://www.acwing.com/problem/content/220/
https://vjudge.net/problem/LightOJ-1030
https://vjudge.net/problem/LightOJ-1027
https://vjudge.net/problem/SGU-495
https://acm.hdu.edu.cn/showproblem.php?pid=4405
https://acm.hdu.edu.cn/showproblem.php?pid=3853
https://acm.hdu.edu.cn/showproblem.php?pid=5985
https://acm.hdu.edu.cn/showproblem.php?pid=5955
https://acm.hdu.edu.cn/showproblem.php?pid=5819
https://acm.hdu.edu.cn/showproblem.php?pid=4579
https://acm.hdu.edu.cn/showproblem.php?pid=6829