海绵的博客

竞赛虐我千百遍,我待竞赛如初恋。 Never Give Up!!!

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

Frogs HDU - 5514

There are m stones lying on a circle, and n frogs are jumping over them. The stones are numbered from 0 to m−1 and the frogs are numbered from 1 to n...

2018-10-16 13:22:08

阅读数:21

评论数:0

Puzzled Elena HDU - 5468 (容斥定理+前缀和)

Since both Stefan and Damon fell in love with Elena, and it was really difficult for her to choose. Bonnie, her best friend, suggested her to throw a...

2018-09-14 20:29:34

阅读数:32

评论数:0

A. Hard to prepare

After Incident, a feast is usually held in Hakurei Shrine. This time Reimu asked Kokoro to deliver a Nogaku show during the feast. To enjoy the show,...

2018-09-10 11:05:50

阅读数:145

评论数:0

Problem G. Cyclic

Problem Description Count the number of cyclic permutations of length n with no continuous subsequence [i, i + 1 mod n]. Output the answer modulo 99...

2018-08-27 13:52:06

阅读数:31

评论数:0

Rikka with Badminton

Problem Description In the last semester, Rikka joined the badminton club. There are n students in the badminton club, some of them have rackets, an...

2018-08-20 21:02:28

阅读数:40

评论数:0

Four-tuples

链接:https://www.nowcoder.com/acm/contest/123/F 来源:牛客网   题目描述 Given   ,please count the number of four-tuples such thatand   The answer should modul...

2018-08-15 21:49:09

阅读数:23

评论数:0

Character Encoding

  Problem Description In computer science, a character is a letter, a digit, a punctuation mark or some other similar symbol. Since computers can o...

2018-08-15 19:42:22

阅读数:58

评论数:0

Cheerleaders UVA - 11806

#include<bits/stdc++.h> using namespace std; typedef long long ll; #define rep(i,a,b) for(int i=a;i<b;i++) #defi...

2018-08-02 11:00:45

阅读数:14

评论数:0

Coprime

传送门 Problem Description There are n people standing in a line. Each of them has a unique id number. Now the Ragnarok is coming. We should choose 3 ...

2018-07-29 10:43:28

阅读数:24

评论数:0

Co-prime(容斥定理)

传送门 Problem Description Given a number N, you are asked to count the number of integers between A and B inclusive which are relatively prime to N. ...

2018-07-28 21:19:33

阅读数:29

评论数:0

Highways UVA - 1393

#include<cstdio> #include<cmath> #include<algorithm> #include<ctime&a...

2018-07-18 22:59:10

阅读数:16

评论数:0

Eddy's爱好 HDU - 2204

Ignatius 喜欢收集蝴蝶标本和邮票,但是Eddy的爱好很特别,他对数字比较感兴趣,他曾经一度沉迷于素数,而现在他对于一些新的特殊数比较有兴趣。 这些特殊数是这样的:这些数都能表示成M^K,M和K是正整数且K>1。 正当他再度沉迷的时候,他发现不知道什么时候才...

2018-05-13 17:33:17

阅读数:20

评论数:0

I - GCD Expectation ZOJ - 3868

Edward has a set of n integers {a1, a2,...,an}. He randomly picks a nonempty subset {x1, x2,…,xm} (each nonempty subset has equal probability to be p...

2018-04-28 20:06:16

阅读数:10

评论数:0

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