排序:
默认
按更新时间
按访问量

ICPC Latin American Regional – 2017 J Jumping Frog

题意是:给出一个环形的字符串,'R'和'P'分别代表岩石和池塘,一只青蛙从任意的地点出发,跳k步之后到达起点,问有多少这样的k满足题目要求。 易知当 gcd(n,k) 满足条件时,此时的答案是可行的,所以只需要枚举n的因子即可。最外层枚举因子,内层枚举起点,最内层枚举需要走的步数,当最后走完时并...

2018-09-21 10:19:51

阅读数:19

评论数:0

2018 ECNU Campus Invitational Contest B Almost AP & 华东师范校赛 数螃蟹

Almost AP time limit per test 2.0 s memory limit per test 512 MB input standard input output standard output An array, is called an &quo...

2018-09-19 15:57:49

阅读数:36

评论数:0

Maratona de Programa¸c˜ao da SBC – ACM ICPC – 2013 F Triangles

题意是一个圆上,给出n个点之间的距离,最后的距离是最后一个点跟第一个点之间的距离,问能组成多少个等边三角形。 容易想到圆的周长不能整除3的话一定无法构成等边三角形,所以先特判这种情况。然后可以发现,每条线段必定是n个连续的点,这样可以找到2*n个点,判断从当前点开始,能否在n个点之内,正...

2018-05-03 15:39:19

阅读数:112

评论数:0

Codeforces gym 101612 Consonant Fencity (状态压缩+暴力)

Consonant Fencity 时间限制: 3 Sec 内存限制: 512 MB 提交: 100 解决: 15 [提交][状态][讨论版][命题人:admin] 题目描述 There are two kinds of sounds in spoken languages: vowels a...

2018-04-28 15:46:21

阅读数:119

评论数:0

April Fools Contest 2018

哇,第二天补题,发现除了第一个什么都不会,这么可怕的题意吗? A. Quirky Quantifiers time limit per test 2 seconds memory limit per test 64 megabytes ...

2018-04-02 17:35:37

阅读数:65

评论数:0

Codeforces Round #464 (Div. 2) A-D题解

A. Love Triangle time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output...

2018-02-27 10:32:16

阅读数:147

评论数:0

Codeforces Round #361 (Div. 2) D (树状数组+二分)

D. Friends and Subsequences time limit per test 2 seconds memory limit per test 512 megabytes input standard input output sta...

2018-01-29 10:59:57

阅读数:118

评论数:0

Codeforces Round #365 (Div. 2) D (树状数组)

D. Mishka and Interesting sum time limit per test 3.5 seconds memory limit per test 256 megabytes input standard input output ...

2018-01-27 10:19:12

阅读数:130

评论数:0

Codeforces Round #452 (Div. 2) A-C题解

哎............ A. Splitting in Teams time limit per test 1 second memory limit per test 256 megabytes input standard ...

2017-12-17 20:06:27

阅读数:550

评论数:1

Codeforces Round #451 (Div. 2) A-C题解

伤心总是难免的,明明是送分场,愣是掉了61分。 A. Rounding time limit per test 1 second memory limit per test 256 megabytes input standard ...

2017-12-17 13:24:36

阅读数:535

评论数:0

Codeforces Round #450 (Div. 2) A-C题解

A. Find Extra One time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output You have n distinct points...

2017-12-14 21:37:01

阅读数:502

评论数:0

Codeforces Round #449 (Div. 2) A-C题解

A. Scarborough Fair time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output Are you going to Scarbo...

2017-12-06 14:36:32

阅读数:320

评论数:0

Codeforces Round #422 (Div. 2) C Hacker, pack your bags! (二分orDP)

Hacker, pack your bags! time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output It's well known tha...

2017-12-03 22:02:04

阅读数:254

评论数:0

Codeforce 839C Journey (dfs+概率)

C. Journey time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output There are n cities and n - 1 roa...

2017-11-25 17:25:30

阅读数:615

评论数:0

Educational Codeforces Round 33 (Rated for Div. 2) A-C题解

A. Chess For Three time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Alex, Bob and Carl will s...

2017-11-25 10:02:50

阅读数:514

评论数:0

Codeforces Round #447 (Div. 2) A-C题解

A. QAQ time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output "QAQ" is a word to denote a...

2017-11-20 16:52:27

阅读数:656

评论数:0

Codeforces Round #446 (Div. 2) A-C 题解

A. Greed time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output Jafar has n cans of cola. Each can...

2017-11-18 13:53:50

阅读数:521

评论数:2

Codeforces Round #444 (Div. 2) A-C 题解

A. Div. 64 time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Top-model Izabella participates i...

2017-11-17 15:19:33

阅读数:573

评论数:0

Codeforces Round #443 (Div. 2) A-C 题解

A. Borya's Diagnosis time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output It seems that Borya is...

2017-11-16 21:37:54

阅读数:426

评论数:0

Codeforces Round #440 (Div. 2, based on Technocup 2018 Elimination Round 2) A-C题解

A. Search for Pretty Integers time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output You are given ...

2017-10-17 12:56:21

阅读数:368

评论数:0

提示
确定要删除当前文章?
取消 删除
关闭
关闭