P - Meteor Shower

Bessie hears that an extraordinary meteor shower is coming; reports say that these meteors will crash into earth and destroy anything they hit. Anxio...

2019-05-19 13:01:47

阅读数 9

评论数 0

O - Curling 2.0

On Planet MM-21, after their Olympic games this year, curling is getting popular. But the rules are somewhat different from ours. The game is played ...

2019-05-19 13:00:48

阅读数 3

评论数 0

N - Red and Black

There is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man is standing on a black tile. From a tile, he ...

2019-05-19 12:59:46

阅读数 2

评论数 0

M - Find a way

Pass a year learning in Hangzhou, yifenfei arrival hometown Ningbo at finally. Leave Ningbo one year, yifenfei have many people to meet. Especially a...

2019-05-19 12:58:19

阅读数 2

评论数 0

L - 非常可乐

大家一定觉的运动以后喝可乐是一件很惬意的事情,但是seeyou却不这么认为。因为每次当seeyou买了可乐以后,阿牛就要求和seeyou一起分享这一瓶可乐,而且一定要喝的和seeyou一样多。但seeyou的手中只有两个杯子,它们的容量分别是N 毫升和M 毫升 可乐的体积为S (S<...

2019-05-19 12:57:14

阅读数 1

评论数 0

K - Oil Deposits

The GeoSurvComp geologic survey company is responsible for detecting underground oil deposits. GeoSurvComp works with one large rectangular region of...

2019-05-19 12:56:02

阅读数 1

评论数 0

J - 迷宫问题

定义一个二维数组: int maze[5][5] = { 0, 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 1, 0, }; 它表示一个迷宫,其中的1表示墙壁,0表示可以走的路,只能横着走或竖着走,不...

2019-05-19 12:54:35

阅读数 6

评论数 0

I - Fire!

Joe works in a maze. Unfortunately, portions of the maze have caught on fire, and the owner of the maze neglected to create a fire escape plan. Help ...

2019-05-19 12:53:40

阅读数 2

评论数 0

H - Fire Game

Fat brother and Maze are playing a kind of special (hentai) game on an N*M board (N rows, M columns). At the beginning, each grid of this board is co...

2019-05-19 12:52:37

阅读数 2

评论数 0

G - Shuffle'm Up

A common pastime for poker players at a poker table is to shuffle stacks of chips. Shuffling chips is performed by starting with two stacks of poker ...

2019-05-19 12:51:31

阅读数 3

评论数 0

F - Prime Path

The ministers of the cabinet were quite upset by the message from the Chief of Security stating that they would all have to change the four-digit roo...

2019-05-19 12:50:06

阅读数 4

评论数 0

E - Find The Multiple

Given a positive integer n, write a program to find out a nonzero multiple m of n whose decimal representation contains only the digits 0 and 1. You ...

2019-05-19 12:48:20

阅读数 7

评论数 0

D - Fliptile

Farmer John knows that an intellectually satisfied cow is a happy cow who will give more milk. He has arranged a brainy activity for cows in which th...

2019-05-19 12:46:45

阅读数 11

评论数 0

C - Catch That Cow

Farmer John has been informed of the location of a fugitive cow and wants to catch her immediately. He starts at a point N (0 ≤ N ≤ 100,000) on a num...

2019-05-19 12:45:08

阅读数 9

评论数 0

B - Dungeon Master

You are trapped in a 3D dungeon and need to find the quickest way out! The dungeon is composed of unit cubes which may or may not be filled with rock...

2019-05-19 12:43:19

阅读数 6

评论数 0

A - 棋盘问题

在一个给定形状的棋盘(形状可能是不规则的)上面摆放棋子,棋子没有区别。要求摆放时任意的两个棋子不能放在棋盘中的同一行或者同一列,请编程求解对于给定形状和大小的棋盘,摆放k个棋子的所有可行的摆放方案C。 Input 输入含有多组测试数据。 每组数据的第一行是两个正整数,n k,用一个空格隔开,表示了...

2019-05-19 12:40:46

阅读数 13

评论数 0

水题-完全平方数

一个整数,它加上100后是一个完全平方数,再加上168又是一个完全平方数。请输出n以内符合这样特征的整数个数。 输入 只有一组数据,从键盘输入一个整数n(n<1000000)。 输出 n以内符合上述特征的完全平方数个数。 难度 入门 输入示例 ...

2019-02-27 09:49:22

阅读数 29

评论数 0

水题-超级楼梯

有一楼梯共M级,刚开始时你在第一级,若每次只能跨上一级或二级,要走上第M级,共有多少种走法? 输入 输入数据首先包含一个整数N,表示测试实例的个数,然后是N行数据,每行包含一个整数M(1<=M<=40),表示楼梯的级数。 输出 对于每个测试实...

2019-02-27 09:43:34

阅读数 19

评论数 0

水题-同构数

找出1与n之间(包括1和n)的全部“同构数”的个数。“同构数”是这样一种数,它出现在它的平方数的右端。例如,5的平方是25,5是25的右端的数;25也是一个同构数,它的平方是625。 输入 输入数据只有一组,在一行上输入正整数n(0<n<1000)...

2019-02-26 08:26:21

阅读数 89

评论数 0

水题-添加记录(结构体)

有一学生成绩表,包括学号、姓名、3门课程成绩。已知该成绩表按学号升序已排序。请编程实现,添加一个新的学生信息,且使成绩表仍按学号有序;若待添加的学号与已有学号重复,则输出错误信息,拒绝添加。 输入 输入只有一组数据,包含多行。 首先输入一个整数n(1<=n&am...

2019-02-26 08:24:19

阅读数 33

评论数 0

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