水题
水题
DNMTOOBA
这个作者很懒,什么都没留下…
展开
-
The Meaningless Game 【codeforces】【思维】
A. The Meaningless Gametime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputSlastyona and her loyal dog Pushok原创 2017-11-12 21:38:29 · 360 阅读 · 0 评论 -
全排列【51nod】【全排列】
1384 全排列基准时间限制:1 秒 空间限制:131072 KB 分值: 0 难度:基础题 收藏 关注给出一个字符串S(可能有重复的字符),按照字典序从小到大,输出S包括的字符组成的所有排列。例如:S = "1312",输出为:11231132121312311312132121132131原创 2017-12-06 19:25:16 · 350 阅读 · 0 评论 -
Train Problem I 【hdu-1022】【栈】
Train Problem ITime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 42802 Accepted Submission(s): 16042Problem DescriptionAs the new term comes, t...原创 2018-03-06 16:17:16 · 224 阅读 · 0 评论 -
折线分割平面 【hdu-2050】【递推】
折线分割平面Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 31958 Accepted Submission(s): 21636Problem Description我们看到过很多直线分割平面的题目,原创 2017-09-19 17:22:58 · 484 阅读 · 0 评论 -
超级楼梯 【hdu-2041】【递推】
超级楼梯Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 61702 Accepted Submission(s): 31660Problem Description有一楼梯共M级,刚开始时你在第一级,若每次只能跨上一级或二级,要走上第...原创 2017-09-19 16:43:44 · 453 阅读 · 0 评论 -
一只小蜜蜂... 【hdu-2044】【递推】
一只小蜜蜂...Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 77939 Accepted Submission(s): 28051Problem Description有一只经过训练的蜜蜂只能爬向右原创 2017-09-19 16:28:02 · 630 阅读 · 0 评论 -
Alice, Bob, Two Teams CodeForces - 632B
Alice and Bob are playing a game. The game involves splitting up game pieces into two teams. There are n pieces, and the i-th piece has a strength pi.The way to split up game pieces is split into sever原创 2017-07-22 21:24:26 · 259 阅读 · 0 评论 -
Cake
Cake 一次生日Party可能有p人或者q人参加,现准备有一个大蛋糕.问最少要将蛋糕切成多少块(每块大小不一定相等),才能使p人或者q人出席的任何一种情况,都能平均将蛋糕分食. Input 每行有两个数p和q. Output 输出最少要将蛋糕切成多少块. Sample Input 2 3 Sample Output 4Hint 将蛋糕切成大小分别为1/3,1/3,1/6原创 2017-07-21 23:22:17 · 267 阅读 · 0 评论 -
兰州烧饼
兰州烧饼 时间限制:1000 ms | 内存限制:65535 KB 难度:1 描述 烧饼有两面,要做好一个兰州烧饼,要两面都弄热。当然,一次只能弄一个的话,效率就太低了。有这么一个大平底锅,一次可以同时放入k个兰州烧饼,一分钟能做好一面。而现在有n个兰州烧饼,至少需要多少分钟才能全部做好呢? 输入 依次输入n和k,中间以空格分隔,其中1 <= k,n <= 100000 输出 输原创 2017-06-01 22:50:41 · 821 阅读 · 0 评论 -
Mahmoud and a Triangle 【codeforces】 【水题】
Mahmoud and a Triangletime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputMahmoud has n line segments, the i-t原创 2017-11-06 22:26:26 · 308 阅读 · 0 评论 -
Rightmost Digit 【hdu-1061】【快速幂】
Rightmost DigitTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 57524 Accepted Submission(s): 21774Problem DescriptionGiven a原创 2017-08-07 11:38:54 · 260 阅读 · 0 评论 -
人见人爱A^B 【hdu-2035】【快速幂】
人见人爱A^BTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 43716 Accepted Submission(s): 29596Problem Description求A^B的最后三位数表示的整数。说明原创 2017-08-07 11:29:30 · 279 阅读 · 0 评论 -
Raising Modulo Numbers 【poj-1995】【快速幂】
Raising Modulo NumbersTime Limit: 1000MS Memory Limit: 30000KTotal Submissions: 8463 Accepted: 5140DescriptionPeople are different. Some secretly read magazines原创 2017-08-07 11:13:33 · 212 阅读 · 0 评论 -
Key Set 【hdu-5363】【快速幂】
Key SetTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 2244 Accepted Submission(s): 1172Problem Descriptionsoda has a set S w原创 2017-08-06 17:53:14 · 373 阅读 · 0 评论 -
找点 NYOJ-891 【贪心】
点击打开链接找点时间限制:2000 ms | 内存限制:65535 KB难度:2描述上数学课时,老师给了LYH一些闭区间,让他取尽量少的点,使得每个闭区间内至少有一个点。但是这几天LYH太忙了,你们帮帮他吗?输入多组测试数据。每组数据先输入一个N,表示有N个闭区间(N≤100)。接下来N行,每行输入两个数a,b原创 2017-07-26 17:49:51 · 419 阅读 · 0 评论 -
Networking 【poj-1287】 【最小生成树】
NetworkingTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 11900 Accepted: 6424DescriptionYou are assigned to design network connections between certai原创 2017-08-03 20:16:59 · 250 阅读 · 0 评论 -
Jungle Roads 【poj-1251】 【最小生成树】
Jungle RoadsTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 27354 Accepted: 12877DescriptionThe Head Elder of the tropical island of Lagrishan has原创 2017-08-03 17:14:09 · 376 阅读 · 0 评论 -
还是畅通工程 【hdu-1233】 【最小生成树】
还是畅通工程Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 47796 Accepted Submission(s): 21802Problem Description某省调查乡村交通状况,得到的统计表原创 2017-08-03 15:49:37 · 327 阅读 · 0 评论 -
Relatives 【poj-2407】【欧拉函数】
RelativesTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 14820 Accepted: 7447DescriptionGiven n, a positive integer, how many positive integers less t原创 2017-07-30 20:32:06 · 359 阅读 · 0 评论 -
A - Wolf and Rabbit
There is a hill with n holes around. The holes are signed from 0 to n-1. A rabbit must hide in one of the holes. A wolf searches the rabbit in anticlockwise order. The first hole he get into is the one原创 2017-07-21 22:22:25 · 421 阅读 · 0 评论 -
Ohana Cleans Up CodeForces - 554B
Description Ohana Matsumae is trying to clean a room, which is divided up into an n by n grid of squares. Each square is initially either clean or dirty. Ohana can sweep her broom over columns of the原创 2017-07-22 22:25:34 · 233 阅读 · 0 评论 -
18岁生日 HDU - 1201
Gardon的18岁生日就要到了,他当然很开心,可是他突然想到一个问题,是不是每个人从出生开始,到达18岁生日时所经过的天数都是一样的呢?似乎并不全都是这样,所以他想请你帮忙计算一下他和他的几个朋友从出生到达18岁生日所经过的总天数,让他好来比较一下。 Input 一个数T,后面T行每行有一个日期,格式是YYYY-MM-DD。如我的生日是1988-03-07。 Output T行,每行一原创 2017-07-22 23:00:44 · 283 阅读 · 0 评论 -
进制转换 HDU - 2031
输入一个十进制数N,将它转换成R进制数输出。 Input 输入数据包含多个测试实例,每个测试实例包含两个整数N(32位整数)和R(2<=R<=16, R<>10)。 Output 为每个测试实例输出转换后的数,每个输出占一行。如果R大于10,则对应的数字规则参考16进制(比如,10用A表示,等等)。 Sample Input 7 2 23 12 -4 3 Sample Output原创 2017-07-22 23:55:04 · 443 阅读 · 0 评论 -
Bear and Three Balls CodeForces - 653A
Limak is a little polar bear. He has n balls, the i-th ball has size ti.Limak wants to give one ball to each of his three friends. Giving gifts isn’t easy — there are two rules Limak must obey to make原创 2017-07-23 10:07:48 · 272 阅读 · 0 评论 -
开门人和关门人 HDU - 1234
每天第一个到机房的人要把门打开,最后一个离开的人要把门关好。现有一堆杂乱的机房签 到、签离记录,请根据记录找出当天开门和关门的人。 Input 测试输入的第一行给出记录的总天数N ( > 0 )。下面列出了N天的记录。 每天的记录在第一行给出记录的条目数M ( > 0 ),下面是M行,每行的格式为 证件号码 签到时间 签离时间 其中时间按“小时:分钟:秒钟”(各占2位)给出,证件号码是原创 2017-07-23 11:09:34 · 246 阅读 · 0 评论 -
EXCEL排序 HDU - 1862
Excel可以对一组纪录按任意指定列排序。现请你编写程序实现类似功能。 Input 测试输入包含若干测试用例。每个测试用例的第1行包含两个整数 N (<=100000) 和 C,其中 N 是纪录的条数,C 是指定排序的列号。以下有 N 行,每行包含一条学生纪录。每条学生纪录由学号(6位数字,同组测试中没有重复的学号)、姓名(不超过8位且不包含空格的字符串)、成绩(闭区间[0, 100]内的整原创 2017-07-23 11:42:20 · 262 阅读 · 0 评论 -
Ignatius and the Princess IV 【hdu-1029】
Ignatius and the Princess IVTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32767 K (Java/Others)Total Submission(s): 33744 Accepted Submission(s): 14604Problem Descriptio原创 2017-08-07 20:22:05 · 406 阅读 · 0 评论 -
Red and Black 【hdu-1312】【dfs】
Red and BlackTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 21103 Accepted Submission(s): 12862Problem DescriptionThere is a原创 2017-08-01 11:11:34 · 260 阅读 · 0 评论 -
Milk HDU - 1070
Ignatius drinks milk everyday, now he is in the supermarket and he wants to choose a bottle of milk. There are many kinds of milk in the supermarket, so Ignatius wants to know which kind of milk is the原创 2017-07-23 21:21:56 · 381 阅读 · 0 评论 -
Ubiquitous Religions 【poj-2524】【并查集】
Ubiquitous ReligionsTime Limit: 5000MS Memory Limit: 65536KTotal Submissions: 36790 Accepted: 17517DescriptionThere are so many different religions in the world原创 2017-08-02 10:09:34 · 249 阅读 · 0 评论 -
找新朋友 【hdu 1286】 【欧拉函数】
找新朋友Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 13425 Accepted Submission(s): 7164Problem Description新年快到了,“猪头帮协会”准备搞一个聚会,已经知原创 2017-07-30 15:54:06 · 266 阅读 · 0 评论