自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(35)
  • 收藏
  • 关注

原创 GZHU18级寒假训练:Capric orn's Trial G

Today is Ignatius’ birthday. He invites a lot of friends. Now it’s dinner time. Ignatius wants to know how many tables he needs at least. You have to notice that not all the friends know each other, a...

2019-01-30 04:55:02 118

原创 GZHU18级寒假训练:Aquarius's Trial F

可怜的公主在一次次被魔王掳走一次次被骑士们救回来之后,而今,不幸的她再一次面临生命的考验。魔王已经发出消息说将在T时刻吃掉公主,因为他听信谣言说吃公主的肉也能长生不老。年迈的国王正是心急如焚,告招天下勇士来拯救公主。不过公主早已习以为常,她深信智勇的骑士LJ肯定能将她救出。现据密探所报,公主被关在一个两层的迷宫里,迷宫的入口是S(0,0,0),公主的位置用P表示,时空传输机用#表示,墙用表示,平...

2019-01-30 04:51:33 128

原创 GZHU18级寒假训练:Cancer's Trial G

You are given two pots, having the volume of A and B liters respectively. The following operations can be performed:FILL(i) fill the pot i (1 ≤ i ≤ 2) from the tap;DROP(i) empty the pot ...

2019-01-30 04:48:41 118

原创 GZHU18级寒假训练:Cancer's Trial E

Pirates have finished developing the typing software. He called Cathy to test his typing software. She is good at thinking. After testing for several days, she finds that if she types a string by some...

2019-01-30 04:46:41 151

翻译 GZHU18级寒假训练:Gemini's Trial D

One way to create a task is to learn from math. You can generate some random math statement or modify some theorems to get something new and build a new task from that.For example, there is a stateme...

2019-01-30 04:42:52 147

原创 GZHU18级寒假训练:Gemini's Trial C

After winning gold and silver in IOI 2014, Akshat and Malvika want to have some fun. Now they are playing a game on a grid made of n horizontal and m vertical sticks.An intersection point is any poin...

2019-01-30 04:41:35 139

原创 GZHU18级寒假训练:Leo's Trial I

要求(A/B)%9973,但由于A很大,我们只给出n(n=A%9973)(我们给定的A必能被B整除,且gcd(B,9973) = 1)。Input数据的第一行是一个T,表示有T组数据。每组数据有两个数n(0 <= n < 9973)和B(1 <= B <= 10^9)。Output对应每组数据输出(A/B)%9973。Sample Input21000 53...

2019-01-30 04:38:09 108

原创 GZHU18级寒假训练:Leo's Trial H

定义一个二维数组: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表示可以走的路,只能横着走或竖着走,不能斜着走,要求编程序找出从左上角到右下角的最短路线。Input一个5 × 5的二维数组,表示一个迷...

2019-01-30 04:36:39 113

原创 GZHU18级寒假训练:Leo's Trial C

Vasily the Programmer loves romance, so this year he decided to illuminate his room with candles.Vasily has a candles.When Vasily lights up a new candle, it first burns for an hour and then it goes o...

2019-01-30 04:34:32 164

原创 GZHU18级寒假训练:Leo's Trial B

Being a nonconformist, Volodya is displeased with the current state of things, particularly with the order of natural numbers (natural number is positive integer number). He is determined to rearrange...

2019-01-30 04:32:38 137

原创 GZHU18级寒假训练:Leo's Trial A

Vasya has n pairs of socks. In the morning of each day Vasya has to put on a pair of socks before he goes to school. When he comes home in the evening, Vasya takes off the used socks and throws them a...

2019-01-29 13:12:39 129

原创 GZHU18级寒假训练:Cancer's Trial B

Sheldon, Leonard, Penny, Rajesh and Howard are in the queue for a “Double Cola” drink vending machine; there are no other people in the queue. The first one in the queue (Sheldon) buys a can, drinks i...

2019-01-29 12:37:04 111

原创 GZHU18级寒假训练:Cancer's Trial A

A Ministry for Defense sent a general to inspect the Super Secret Military Squad under the command of the Colonel SuperDuper. Having learned the news, the colonel ordered to all n squad soldiers to li...

2019-01-29 12:35:16 117

原创 GZHU18级寒假训练:Cancer's Trial C

There is a game called “I Wanna Be the Guy”, consisting of n levels. Little X and his friend Little Y are addicted to the game. Each of them wants to pass the whole game.Little X can pass only p leve...

2019-01-29 12:34:16 118

原创 GZHU18级寒假训练:Gemini's Trial J

Severe acute respiratory syndrome (SARS), an atypical pneumonia of unknown aetiology, was recognized as a global threat in mid-March 2003. To minimize transmission to others, the best strategy is to s...

2019-01-29 12:17:53 171

原创 GZHU18级寒假训练:Gemini's Trial I

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 chips, S1 and S2, each stack containing C chips. Ea...

2019-01-29 12:14:52 134

原创 GZHU18级寒假训练:Gemini's Trial H

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 room numbers on their offices.— It is a matter of sec...

2019-01-29 12:12:54 145

翻译 GZHU18级寒假训练:Gemini's Trial G

都说天上不会掉馅饼,但有一天gameboy正走在回家的小径上,忽然天上掉下大把大把的馅饼。说来gameboy的人品实在是太好了,这馅饼别处都不掉,就掉落在他身旁的10米范围内。馅饼如果掉在了地上当然就不能吃了,所以gameboy马上卸下身上的背包去接。但由于小径两侧都不能站人,所以他只能在小径上接。由于gameboy平时老呆在房间里玩游戏,虽然在游戏中是个身手敏捷的高手,但在现实中运动神经特别迟钝...

2019-01-29 12:11:09 97

原创 GZHU18级寒假训练:Gemini's Trial B

Vasya works as a DJ in the best Berland nightclub, and he often uses dubstep music in his performance. Recently, he has decided to take a couple of old songs and make dubstep remixes from them.Let’s ...

2019-01-29 12:09:29 122

原创 GZHU18级寒假训练:Gemini's Trial A

For a positive integer n let’s define a function f:f(n) =  - 1 + 2 - 3 + … + ( - 1)nnYour task is to calculate f(n) for a given integer n.InputThe single line contains the positive integer n (1 ≤ ...

2019-01-29 12:07:50 167

原创 白银组第三次训练 第三题

汉诺塔IV HDU - 2077还记得汉诺塔III吗?他的规则是这样的:不允许直接从最左(右)边移到最右(左)边(每次移动一定是移到中间杆或从中间移出),也不允许大盘放到小盘的上面。xhd在想如果我们允许最大的盘子放到最上面会怎么样呢?(只允许最大的放在最上面)当然最后需要的结果是盘子从小到大排在最右边。Input输入数据的第一行是一个数据T,表示有T组数据。每组数据有一个正整数n(1 &...

2018-12-21 22:43:43 67

原创 白银组第二题

杨辉三角 HDU - 2032还记得中学时候学过的杨辉三角吗?具体的定义这里不再描述,你可以参考以下的图形:11 11 2 11 3 3 11 4 6 4 11 5 10 10 5 1Input输入数据包含多个测试实例,每个测试实例的输入只包含一个正整数n(1<=n<=30),表示将要输出的杨辉三角的层数。Output对应于每一个输入,请输出相应层数的杨辉三角,每...

2018-12-21 21:17:10 69

原创 白银组第三次第一题

IQ test CodeForces - 25ABob is preparing to pass IQ test. The most frequent task in this test is to find out which one of the given n numbers differs from the others. Bob observed that one number usu...

2018-12-21 21:13:21 117

原创 白银组第五题

汉字统计Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 62489 Accepted Submission(s): 33636Problem Description统计给定文本文件中汉字的个数。Input输入文件首先包含一...

2018-12-15 00:36:35 73

原创 白银组第四题

单词数Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 69554 Accepted Submission(s): 17473Problem Descriptionlily的好朋友xiaoou333最近很空,他想了一件没有什么意...

2018-12-14 23:05:58 82

原创 白银组第二题

O - cAPS lOCK CodeForces - 131A wHAT DO WE NEED cAPS LOCK FOR?Caps lock is a computer keyboard key. Pressing it sets an input mode in w...

2018-12-14 22:07:02 97

原创 白银组第一题

Y - Nearly Lucky Number CodeForces - 110A Petya loves lucky numbers. We all know that lucky numbers are the positive integers whose decimal representations contain only th...

2018-12-14 22:04:58 100

原创 A + B Problem Too HDU - 2101

This problem is also a A + B problem,but it has a little difference,you should determine does (a+b) could be divided with 86.For example ,if (A+B)=98,you should output no for result.InputEach line w...

2018-12-08 01:33:34 79

原创 计算球体积 HDU - 2002

根据输入的半径值,计算球的体积。Input输入数据有多组,每组占一行,每行包括一个实数,表示球的半径。Output输出对应的球的体积,对于每组输入数据,输出一行,计算结果保留三位小数。Sample Input11.5Sample Output4.18914.137Hint#define PI 3.1415927#include "pch.h"#include <i...

2018-12-08 01:25:02 273

原创 ASCII码排序 HDU - 2000

输入三个字符后,按各字符的ASCII码从小到大的顺序输出这三个字符。Input输入数据有多组,每组占一行,有三个字符组成,之间无空格。Output对于每组输入数据,输出一行,字符中间用一个空格分开。Sample InputqweasdzxcSample Outpute q wa d sc x z#include "pch.h"#include<algorithm&...

2018-12-08 00:55:56 101

原创 排序 HDU - 1106

输入一行数字,如果我们把这行数字中的‘5’都看成空格,那么就得到一行用空格分割的若干非负整数(可能有些整数以‘0’开头,这些头部的‘0’应该被忽略掉,除非这个整数就是由若干个‘0’组成的,这时这个整数就是0)。你的任务是:对这些分割得到的整数,依从小到大的顺序排序输出。Input输入包含多组测试用例,每组输入数据只有一行数字(数字之间没有空格),这行数字的长度不大于1000。输入数据保证:...

2018-12-07 22:43:39 178

原创 A + B Problem HDU - 1000

Calculate A + B.InputEach line will contain two integers A and B. Process to end of file.OutputFor each case, output A + B in one line.Sample Input1 1Sample Output2cin输入可用空格结束,定义A,B,输出两数相加的结果...

2018-12-07 22:21:35 60

原创 Stones on the Table CodeForces - 266A

There are n stones on the table in a row, each of them can be red, green or blue. Count the minimum number of stones to take from the table so that any two neighboring stones had different colors. Sto...

2018-12-07 22:17:12 105

原创 George and Accommodation CodeForces - 467A

George has recently entered the BSUCP (Berland State University for Cool Programmers). George has a friend Alex who has also entered the university. Now they are moving into a dormitory.George and Al...

2018-12-07 22:08:49 93

原创 String Task CodeForces - 118A

Petya started to attend programming lessons. On the first lesson his task was to write a simple program. The program was supposed to do the following: in the given string, consisting if uppercase and ...

2018-12-07 22:01:56 78

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

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