随笔分类 - 水
Codeforces Round #363 (Div. 2) B 暴力
摘要:Description You are given a description of a depot. It is a rectangular checkered field of n × m size. Each cell in a field can be empty (".") or it c
阅读全文
Codeforces Round #363 (Div. 2) A 水
摘要:Description There will be a launch of a new, powerful and unusual collider very soon, which located along a straight line. n particles will be launche
阅读全文
Codeforces Round #316 (Div. 2) C 思路/模拟
摘要:C. Replacement time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output C. Replacement time limit
阅读全文
Codeforces Round #316 (Div. 2) B 贪心
摘要:B. Simple Game time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output B. Simple Game time limit
阅读全文
Codeforces Round #316 (Div. 2) A 水
摘要:A. Elections time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output A. Elections time limit per
阅读全文
Codeforces Round #323 (Div. 2) A 水
摘要:A. Asphalting Roads time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output A. Asphalting Roads t
阅读全文
Codeforces Round #241 (Div. 2) B dp
摘要:B. Art Union time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output B. Art Union time limit per
阅读全文
CDOJ 1256 二维前缀和处理
摘要:昊昊喜欢运动 他NN 天内会参加MM 种运动(每种运动用一个[1,m][1,m] 的整数表示) 舍友有QQ 个问题 问昊昊第ll 天到第rr 天参加了多少种不同的运动 Input 输入两个数NN , MM (1≤N≤20001≤N≤2000 , 1≤M≤1001≤M≤100 ); 输入NN 个数ai
阅读全文
Educational Codeforces Round 8 B 找规律
摘要:B. New Skateboard time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output B. New Skateboard time
阅读全文
HDU 3792 素数打表
摘要:Description If we define dn as: dn = pn+1-pn, where pi is the i-th prime. It is easy to see that d1 = 1 and dn=even for n>1. Twin Prime Conjecture sta
阅读全文
Codeforces Round #240 (Div. 2) B 好题
摘要:B. Mashmokh and Tokens time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output B. Mashmokh and To
阅读全文
Codeforces Round #362 (Div. 2) A 水也挂
摘要:A. Pineapple Incident time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output A. Pineapple Incide
阅读全文
UVA 11991 vector
摘要:Though Rujia Liu usually sets hard problems for contests (for example, regional contests likeXi’an 2006, Beijing 2007 and Wuhan 2009, or UVa OJ contes
阅读全文
Gym 100989E 字符串
摘要:Description standard input/output Islam is usually in a hurry. He often types his passwords incorrectly. He hates retyping his password several times
阅读全文
Gym 100989F 水&愚&vector
摘要:standard input/output You must have heard about Agent Mahone! Dr. Ibrahim hired him to catch the cheaters in the Algorithms course. N students cheated
阅读全文
Gym 100971B 水&愚
摘要:Description standard input/output Announcement Statements A permutation of n numbers is a sequence of integers from 1 to n where each number is occurr
阅读全文
Codeforces Round #361 (Div. 2) A
摘要:A. Mike and Cellphone time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output A. Mike and Cellpho
阅读全文
Codeforces Round #359 (Div. 2) A
摘要:A. Free Ice Cream time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output A. Free Ice Cream time
阅读全文
Codeforces Round #357 (Div. 2) A
摘要:A. A Good Contest time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output A. A Good Contest time
阅读全文
Codeforces Round #356 (Div. 2) B
摘要:B. Bear and Finding Criminals time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output B. Bear an
阅读全文