自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(41)
  • 资源 (1)
  • 收藏
  • 关注

原创 POJ - 1611-day3-F

问题来源POJ - 1611问题描述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 ...

2019-01-30 08:54:57 85

原创 POJ - 3087-day3E

问题来源POJ - 3087问题描述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 c...

2019-01-30 08:48:26 79

原创 HDU - 1075-day9G

问题来源HDU - 1075问题描述Ignatius is so lucky that he met a Martian yesterday. But he didn’t know the language the Martians use. The Martian gives him a history book of Mars and a dictionary when it leave...

2019-01-30 07:46:08 83

原创 HDU - 1078-day8E

问题来源HDU - 1078问题描述FatMouse has stored some cheese in a city. The city can be considered as a square grid of dimension n: each grid location is labelled (p,q) where 0 <= p < n and 0 <= q &l...

2019-01-30 06:18:15 87

原创 HDU - 1576-day4i

问题来源HDU - 1576问题描述要求(A/B)%9973,但由于A很大,我们只给出n(n=A%9973)(我们给定的A必能被B整除,且gcd(B,9973) = 1)。输入数据的第一行是一个T,表示有T组数据。每组数据有两个数n(0 <= n < 9973)和B(1 <= B <= 10^9)输出对应每组数据输出(A/B)%9973。例子input`...

2019-01-30 01:08:42 122

原创 UVA - 424-day3I

问题来源UVA - 424问题描述One of the first users of BIT’s new supercomputer was Chip Diller. He extended his exploration ofpowers of 3 to go from 0 to 333 and he explored taking various sums of those numbe...

2019-01-30 00:40:05 57

原创 HDU - 1264

问题来源添加链接描述问题描述Your input is a series of rectangles, one per line. Each rectangle is specified as two points(X,Y) that specify the opposite corners of a rectangle. All coordinates will be integers i...

2019-01-29 16:03:08 77

原创 HDU - 1422-day12C

问题来源HDU - 1422 问题描述世界杯结束了,意大利人连本带利的收回了法国人6年前欠他们的债,捧起了大力神杯,成就了4星意大利.世界杯虽然结束了,但是这界世界杯给我们还是留下许多值得回忆的东西.比如我们听到了黄名嘴的3分钟激情解说,我们懂得了原来可以向同一个人出示3张黄牌,我们还看到了齐达内的头不仅能顶球还能顶人…………介于有这么多的精彩,xhd决定重温德国世界杯,当然只是去各个承...

2019-01-29 15:47:28 66

原创 HDU-2067-day5J

问题来源HDU-2067问题描述小兔的叔叔从外面旅游回来给她带来了一个礼物,小兔高兴地跑回自己的房间,拆开一看是一个棋盘,小兔有所失望。不过没过几天发现了棋盘的好玩之处。从起点(0,0)走到终点(n,n)的最短路径数是C(2n,n),现在小兔又想如果不穿越对角线(但可接触对角线上的格点),这样的路径数有多少?小兔想了很长时间都没想出来,现在想请你帮助小兔解决这个问题,对于你来说应该不难吧!...

2019-01-28 12:47:15 69

原创 HDU-1495-day5H

问题来源HDU-1495问题描述大家一定觉的运动以后喝可乐是一件很惬意的事情,但是seeyou却不这么认为。因为每次当seeyou买了可乐以后,阿牛就要求和seeyou一起分享这一瓶可乐,而且一定要喝的和seeyou一样多。但seeyou的手中只有两个杯子,它们的容量分别是N 毫升和M 毫升 可乐的体积为S (S<101)毫升 (正好装满一瓶) ,它们三个之间可以相互倒可乐 (都是没有...

2019-01-28 12:25:04 65

原创 POJ - 2387-day10J

问题来源POJ - 2387问题描述Bessie is out in the field and wants to get back to the barn to get as much sleep as possible before Farmer John wakes her for the morning milking. Bessie needs her beauty sleep, ...

2019-01-27 00:00:20 75

原创 HDU - 1213-day10G

问题来源HDU - 1213问题描述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 frien...

2019-01-26 23:52:29 72

原创 HDU-1166-day8J

问题来源HDU-1166问题描述C国的死对头A国这段时间正在进行军事演习,所以C国间谍头子Derek和他手下Tidy又开始忙乎了。A国在海岸线沿直线布置了N个工兵营地,Derek和Tidy的任务就是要监视这些工兵营地的活动情况。由于采取了某种先进的监测手段,所以每个工兵营地的人数C国都掌握的一清二楚,每个工兵营地的人数都有可能发生变动,可能增加或减少若干人手,但这些都逃不过C国的监视。中央...

2019-01-26 00:39:08 71

原创 UVA - 11389-day9H

问题来源UVA - 11389问题描述In a city there are n bus drivers. Also there are n morning bus routes and n afternoon bus routes withvarious lengths. Each driver is assigned one morning route and one evening ...

2019-01-26 00:31:57 76

原创 HDU - 1754-day9I

问题来源HDU - 1754问题描述很多学校流行一种比较的习惯。老师们很喜欢询问,从某某到某某当中,分数最高的是多少。这让很多学生很反感。不管你喜不喜欢,现在需要你做的是,就是按照老师的要求,写一个程序,模拟老师的询问。当然,老师有时候需要更新某位同学的成绩。输入本题目包含多组测试,请处理到文件结束。在每个测试的第一行,有两个正整数 N 和 M ( 0<N<=20000...

2019-01-26 00:25:46 57

原创 HDU - 1072-day9F

问题来源HDU - 1072问题描述Ignatius had a nightmare last night. He found himself in a labyrinth with a time bomb on him. The labyrinth has an exit, Ignatius should get out of the labyrinth before the bomb e...

2019-01-26 00:19:36 58

原创 HDU - 2068-day8I

问题来源HDU - 2068问题描述今年暑假杭电ACM集训队第一次组成女生队,其中有一队叫RPG,但做为集训队成员之一的野骆驼竟然不知道RPG三个人具体是谁谁。RPG给他机会让他猜猜,第一次猜:R是公主,P是草儿,G是月野兔;第二次猜:R是草儿,P是月野兔,G是公主;第三次猜:R是草儿,P是公主,G是月野兔;…可怜的野骆驼第六次终于把RPG分清楚了。由于RPG的带动,做ACM的女生越来越多,...

2019-01-26 00:10:15 67

原创 HDU - 2049-day6I

问题来源HDU - 2049问题描述国庆期间,省城HZ刚刚举行了一场盛大的集体婚礼,为了使婚礼进行的丰富一些,司仪临时想出了有一个有意思的节目,叫做"考新郎",具体的操作是这样的:首先,给每位新娘打扮得几乎一模一样,并盖上大大的红盖头随机坐成一排;然后,让各位新郎寻找自己的新娘.每人只准找一个,并且不允许多人找一个.最后,揭开盖头,如果找错了对象就要当众跪搓衣板…看来做新郎也不是容...

2019-01-26 00:00:41 57

原创 HDU - 1241-day4G

问题来源HDU - 1241问题描述The GeoSurvComp geologic survey company is responsible for detecting underground oil deposits. GeoSurvComp works with one large rectangular region of land at a time, and creates a...

2019-01-25 23:51:19 71

原创 POJ - 3984-day3H

问题来源POJ - 3984 问题描述定义一个二维数组: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-01-25 23:45:35 62

原创 CodeForces - 469A -day3-C

问题来源CodeForces - 469A 问题描述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....

2019-01-24 12:01:43 101

原创 CodeForces - 82A-day3-B

问题来源CodeForces - 82A问题描述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 (Sh...

2019-01-24 11:43:37 236

原创 CodeForces - 144A-day-3-A

问题来源CodeForces - 144A 问题描述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 ...

2019-01-24 11:19:29 103

原创 2周题-POJ-1067--取石子游戏

问题来源POJ-1067问题描述有两堆石子,数量任意,可以不同。游戏开始由两个人轮流取石子。游戏规定,每次有两种不同的取法,一是可以在任意的一堆中取走任意多的石子;二是可以在两堆中同时取走相同数量的石子。最后把石子全部取完者为胜者。现在给出初始的两堆石子的数目,如果轮到你先取,假设双方都采取最好的策略,问最后你是胜者还是败者。输入输入包含若干行,表示若干种石子的初始情况,其中每一行包含两...

2018-12-15 13:13:03 219

原创 2周题-HDU-2099--整除的尾数

问题来源HDU-2099问题描述一个整数,只知道前几位,不知道末二位,被另一个整数除尽了,那么该数的末二位该是什么呢?输入输入数据有若干组,每组数据包含二个整数a,b(0<a<10000, 10<b<100),若遇到0 0则处理结束。输出对应每组数据,将满足条件的所有尾数在一行内输出,格式见样本输出。同组数据的输出,其每个尾数之间空一格,行末没有空格。例子...

2018-12-15 11:42:16 101

原创 2周题-HDU-1049--Climbing Worm

问题来源HDU-1049问题描述An inch worm is at the bottom of a well n inches deep. It has enough energy to climb u inches every minute, but then has to rest a minute before climbing again. During the rest, it ...

2018-12-15 11:35:37 99

原创 2周题-HDU-1284--钱币兑换问题

问题来源HDU-1284问题描述在一个国家仅有1分,2分,3分硬币,将钱N兑换成硬币有很多种兑法。请你编程序计算出共有多少种兑法。输入每行只有一个正整数N,N小于32768。输出对应每个输入,输出兑换方法数。例子AC的代码#include <iostream>using namespace std;int main(){ int i,sum=0,f2...

2018-12-15 00:48:38 251

原创 1周赛-HDU - 2005-第几天?

问题来源给定一个日期,输出这个日期是该年的第几天。问题描述输入数据有多组,每组占一行,数据格式为YYYY/MM/DD组成,具体参见sample input ,另外,可以向你确保所有的输入数据是合法的。输入对于每组输入数据,输出一行,表示该日期是该年的第几天。输出对于每组输入数据,输出一行,表示该日期是该年的第几天。例子AC的代码#include #includeusing...

2018-12-15 00:29:50 80

原创 1周赛-HDU-2027--统计元音

问题来源HDU-2027问题描述统计每个元音字母在字符串中出现的次数输入输入数据首先包括一个整数n,表示测试实例的个数,然后是n行长度不超过100的字符串。输出对于每个测试实例输出5行,格式如下:a:num1e:num2i:num3o:num4u:num5多个测试实例之间由一个空行隔开。请特别注意:最后一块输出后面没有空行:)例子AC的代码#include &l...

2018-12-15 00:23:43 133

原创 1周赛cf-A. Drazil and Date

问题来源[A. Drazil and Date](http://codeforces.com/problemset/problem/515/A)问题描述Someday, Drazil wanted to go on date with Varda. Drazil and Varda live on Cartesian plane. Drazil’s home is located in p...

2018-12-15 00:14:57 88

原创 1周赛HDU-6292--赛题分析

问题来源HDU-6292问题描述著名出题人小Q每次比赛后都会写一份《赛题分析》,包含比赛概况、每题的参考算法以及一些统计数值。对于一道题来说,小Q会统计最短的验题人代码长度(Shortest judge solution)以及赛内参赛队伍最短的AC代码长度(Shortest team solution)。统计验题人代码长度比较容易,因为验题人最多也不会超过20个。但是统计选手代码长度就不...

2018-12-15 00:06:11 104

原创 1周赛hdu2039-三角形

hdu2039问题描述给定三条边,请你判断一下能不能组成一个三角形。输入输入数据第一行包含一个数M,接下有M行,每行一个实例,包含三个正数A,B,C。其中A,B,C <1000;输出对于每个测试实例,如果三条边长A,B,C能组成三角形的话,输出YES,否则NO。例子AC的代码#include <iostream>using namespace std;in...

2018-12-14 23:55:55 65

原创 1周赛A-Watermelon

问题来源watermelon问题描述One hot summer day Pete and his friend Billy decided to buy a watermelon. They chose the biggest and the ripest one, in their opinion. After that the watermelon was weighed, and t...

2018-12-14 23:45:57 68

原创 vj-hdu--1106---排序

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

2018-12-07 21:25:19 117

原创 vj hdu-2101--A + B Problem Too

问题来源vj 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 res...

2018-12-07 19:00:41 132

原创 vj hdu 2002--计算球的体积

问题来源vj hdu 2002问题描述根据输入的半径值,计算球的体积。输入输入数据有多组,每组占一行,每行包括一个实数,表示球的半径。输出输出对应的球的体积,对于每组输入数据,输出一行,计算结果保留三位小数。例子AC的代码#include <iostream>#include<iomanip>using namespace std;#define...

2018-12-07 18:52:35 139

原创 vj2000--ASCII码排序

问题来源vj2000问题描述输入三个字符后,按各字符的ASCII码从小到大的顺序输出这三个字符。、输入输入数据有多组,每组占一行,有三个字符组成,之间无空格。输出对于每组输入数据,输出一行,字符中间用一个空格分开。例子AC的代码#include <iostream>#include<stdio.h>using namespace std;int ...

2018-12-07 18:43:57 183

原创 aj HDU - 1000--A + B Problem

问题来源aj1000问题描述Calculate A + B.输入Each line will contain two integers A and B. Process to end of file.输出For each case, output A + B in one line例子AC的代码#include <cstdio>int main(){ int...

2018-12-07 09:52:38 80

原创 vj266A--Stones on the Table

问题来源vj266A问题描述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 diff...

2018-12-07 09:45:51 140

原创 vj467A--George and Accommodation

问题来源vj467A问题描述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 dormito...

2018-12-07 00:20:03 191

题型举例11111.txt

题型举例11111.txt

2021-01-19

空空如也

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

TA关注的人

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