其他oj
没有能与不能只有想与不想
这个作者很懒,什么都没留下…
展开
-
快速排序
快速排序 时间限制(普通/Java) : 1000 MS/ 3000 MS 运行内存限制 : 65536 KByte总提交 : 1085 测试通过 : 419 比赛描述 给定输入排序元素数目n和相应的n个元素,写出程序,利用内排序算法中快速排序算法进行排序,并输出排序最后结果的相应序列。输入 共两行,第一行转载 2015-07-22 14:17:15 · 312 阅读 · 0 评论 -
So Easy!!! (栈模拟)
So Easy!!!Problem Descriptionyizhen has no girlfriend due to his stupid brain that he even can’t solve a simple arithmetic roblem. Can you help him? If you solve it and tell him the result, then原创 2016-04-19 16:29:00 · 716 阅读 · 1 评论 -
Sum it up (欧拉函数)
Sum it upProblem DescriptionGiven a integer n (0 InputThe first line of the input file contains T (TThere is only one number in each test cases: n, the meaning of which has been descri原创 2016-04-19 16:44:00 · 680 阅读 · 0 评论 -
Drink It (模拟)水
Drink ItProblem Description来来来,做道题,一起防老年痴呆。啤酒2元一瓶,4个瓶盖换一瓶,2个空瓶换一瓶。问:n元可换几瓶。不可以赊账不可以买半瓶酒.Input多组数据,输入文件第一行是一个整数T,接下来T行,每行一个整数n(0Output问最多能够得到多少瓶啤酒Sample Input2010Sampl原创 2016-04-19 16:45:47 · 573 阅读 · 0 评论 -
一个经典问题 (LCS)
一个经典问题Problem Description有两个字符串,比如:abedc与acbde,它们公共的序列有许多种,这个序列在原串中可以是不连续的,比如ab,ad,abe,e等都可算做他们的公共序列,但是最长的序列为abe,长度为3,那么怎么求出这个序列最长是多少呢?Input第一行是一个整数T,代表多少组数据(T每组数据给出两个字符串(由小写字符组成),长度都小原创 2016-04-19 16:48:08 · 474 阅读 · 0 评论 -
判断回文数 (水)
判断回文数Problem Description如果一个数是左右对称,那么就是回文数。比如1、1221、121、1234567890987654321是回文数,而100、12345432不是。Input多组测试数据,每个一行,每行一个数,无前导0Output每组数据一行,如果是回文数输出Yes,否则为NOSample Input11221原创 2016-04-19 16:50:34 · 1194 阅读 · 0 评论 -
东北大学校赛重现
LIST has a listProblem DescriptionA famous ACMer named LIST.He is very rich,so he has infinite coins of some par value(面值).One day he has a list of things he wantto buy.And he is so rich,he ca原创 2016-04-19 16:58:08 · 967 阅读 · 0 评论 -
hzauoj The Same Color (模拟)
Problem C: The Same ColorTime Limit: 1 Sec Memory Limit: 128 MBSubmit: 993 Solved: 595[Submit][Status][Web Board]Description Diao Yang has many balls with different colors. Toda原创 2016-05-15 20:55:32 · 472 阅读 · 0 评论 -
hzauoj Problem H: Eat Candy (暴力)
Problem H: Eat CandyTime Limit: 1 Sec Memory Limit: 128 MBSubmit: 1333 Solved: 644[Submit][Status][Web Board]Description There is a box with infinite volume. At first there are原创 2016-05-15 21:07:49 · 434 阅读 · 0 评论 -
hzauoj Problem I: Catching Dogs (数学模拟)
Problem I: Catching DogsTime Limit: 1 Sec Memory Limit: 128 MBSubmit: 1140 Solved: 298[Submit][Status][Web Board]Description Diao Yang keeps many dogs. But today his dogs all ru原创 2016-05-15 21:17:05 · 375 阅读 · 0 评论 -
hzauoj Problem J: Arithmetic Sequence (dp)
Problem J: Arithmetic SequenceTime Limit: 1 Sec Memory Limit: 128 MBSubmit: 1806 Solved: 308[Submit][Status][Web Board]Description Giving a number sequence Awith length n, you s原创 2016-05-15 21:19:27 · 284 阅读 · 0 评论 -
UVALive - 4260 Fortune Card Game (DP&状态转移)好题
UVALive - 4260Fortune Card GameTime Limit: 3000MS Memory Limit: Unknown 64bit IO Format: %lld & %lluSubmitStatusDescriptionA popular card game called ``fort原创 2016-05-16 11:23:12 · 309 阅读 · 0 评论 -
UVALive - 4264 Message (模拟)
UVALive - 4264MessageTime Limit: 3000MS Memory Limit: Unknown 64bit IO Format:原创 2016-05-16 12:35:32 · 286 阅读 · 0 评论 -
UESTC - 1034 AC Milan VS Juventus (模拟&博弈)
UESTC - 1034AC Milan VS JuventusTime Limit: 1000MS Memory Limit: 65535KB 64bit IO Format:原创 2016-05-08 22:06:18 · 497 阅读 · 0 评论 -
UESTC - 1039 Fabricate equation (DFS&模拟)
UESTC - 1039Fabricate equationTime Limit: 1000MS Memory Limit: 65535KB 64bit IO Format:原创 2016-05-08 22:12:44 · 449 阅读 · 0 评论 -
UESTC - 1041 Hug the princess(位运算&转换)好题
UESTC - 1041Hug the princessTime Limit: 1000MS Memory Limit: 65535KB 64bit IO Format:原创 2016-05-08 22:19:16 · 629 阅读 · 0 评论 -
LIST has a list (母函数)
LIST has a listProblem DescriptionA famous ACMer named LIST.He is very rich,so he has infinite coins of some par value(面值).One day he has a list of things he wantto buy.And he is so rich,he ca原创 2016-04-19 16:22:31 · 474 阅读 · 0 评论 -
Land oj 1611 - Null (水)
Problem 1611 - NullTime Limit: 1000MS Memory Limit: 65536KB Total Submit: 266 Accepted: 220 Special Judge: NoDescription Null.InputNullOutputOutput “Null” in a l原创 2016-04-09 22:38:43 · 266 阅读 · 0 评论 -
HYSBZ - 2705 Longge的问题 (欧拉函数)
HYSBZ - 2705Longge的问题Time Limit: 3000MS Memory Limit: 131072KB 64bit IO Format: %lld & %lluSubmit StatusDescriptionLongge的数学成绩非常好,并且他非常乐于挑战高难度的数学问题。现在问题来了原创 2016-03-16 17:32:31 · 339 阅读 · 0 评论 -
HYSBZ - 1257 余数之和sum (技巧&规律)
HYSBZ - 1257余数之和sumTime Limit: 5000MS Memory Limit: 165888KB 64bit IO Format: %lld & %lluSubmit StatusDescription给出正整数n和k,计算j(n, k)=k mod 1 + k mod 2 + k原创 2016-03-16 20:49:06 · 817 阅读 · 2 评论 -
NBUT - 1647 又一道简单题 (暴力模拟)
NBUT - 1647又一道简单题Time Limit: 5000MS Memory Limit: 65535KB 64bit IO Format:Submit StatusDescription输入一个四个数字组成的整数 n,你的任务是数一数有多少种方法,恰好修改一个数字,把它 变成一个完全平原创 2016-03-19 19:29:47 · 629 阅读 · 0 评论 -
UESTC - 1012 Ladygod (模拟)
UESTC - 1012LadygodTime Limit: 1000MS Memory Limit: 65535KB 64bit IO Format: %lld & %lluSubmit StatusDescription有一天人诹Lee在随手帮女神做题,突然女神发现了自己演算纸上的一个式子,但是式子只有两个加数原创 2016-03-19 19:33:57 · 297 阅读 · 0 评论 -
UESTC - 1271 Search gold (DP)
UESTC - 1271Search goldTime Limit: 1000MS Memory Limit: 65535KB 64bit IO Format: %lld & %lluSubmit StatusDescriptionDreams of finding lost treasure almost cam原创 2016-03-23 13:52:24 · 400 阅读 · 0 评论 -
HYSBZ - 2456 mode (卡内存&技巧)
HYSBZ - 2456modeTime Limit: 1000MS Memory Limit: 1024KB 64bit IO Format: %lld & %lluSubmit StatusDescription给你一个n个数的数列,其中某个数出现了超过n div 2次即众数,请你找出那个数。原创 2016-03-14 22:24:42 · 361 阅读 · 0 评论 -
Let's go to play (模拟)
Let's go to play Time Limit : 3000/1000ms (Java/Other) Memory Limit : 65535/32768K (Java/Other)Total Submission(s) : 771 Accepted Submission(s) : 213Font: Times New Roman | Verdana | Georgia原创 2016-03-26 19:18:37 · 960 阅读 · 0 评论 -
Water's coin (高效)
Water's coin Time Limit : 10000/5000ms (Java/Other) Memory Limit : 65535/32768K (Java/Other)Total Submission(s) : 452 Accepted Submission(s) : 72Font: Times New Roman | Verdana | Georgia F原创 2016-03-26 19:24:29 · 306 阅读 · 0 评论 -
幸福指数 (排列组合)水
1005 数据已改,第一名的同学,你已经过了,抱歉。。幸福指数 Time Limit : 3000/1000ms (Java/Other) Memory Limit : 65535/32768K (Java/Other)Total Submission(s) : 566 Accepted Submission(s) : 320Font: Times New Roman原创 2016-03-26 20:11:05 · 416 阅读 · 0 评论 -
计蒜网 喝酒 (模拟)水
喝酒王大钉喜欢喝酒,存货都喝完了,他就去楼下买,正好楼下的商店为了响应学校的 ACM 校赛推出了优惠活动:凡是在本店买的啤酒,喝完以后 33 个空瓶可以换一瓶,44 个瓶盖也可以换一瓶酒。王大钉觉得太合算了,决定多买,现在他手里的钱可以买 NN 瓶酒,但是他算不出来,通过活动兑换他一共可以喝到多少瓶?他很难过,你能帮他计算一下他能喝的酒的数量吗?输入格式:输入第一行是一个正整数 T原创 2016-04-25 12:45:13 · 526 阅读 · 0 评论 -
计蒜网 Candy (模拟&技巧)
CandyThere are NN children standing in a line. Each child is assigned a rating value.You are giving candies to these children subjected to the following requirements:(1) Each child must have a原创 2016-04-25 12:54:38 · 443 阅读 · 0 评论 -
Landoj 1603 - Minimum Sum (暴力&模拟)
Problem 1603 - Minimum SumTime Limit: 2000MS Memory Limit: 65536KB Total Submit: 556 Accepted: 153 Special Judge: NoDescriptionThere are n numbers A[1] , A[2] .... A[n], you can se原创 2016-04-09 21:57:15 · 287 阅读 · 0 评论 -
Land oj 1604 - Play Apple (博弈)
Problem 1604 - Play AppleTime Limit: 1000MS Memory Limit: 65536KB Total Submit: 432 Accepted: 173 Special Judge: NoDescriptionThere are N apples. Two people take turns to either:原创 2016-04-09 22:06:18 · 485 阅读 · 0 评论 -
Land oj 1606 - Funny Sheep(技巧&规律)
Problem 1606 - Funny SheepTime Limit: 1000MS Memory Limit: 65536KB Total Submit: 612 Accepted: 169 Special Judge: NoDescriptionThere are N+1 rows and M+1 columns fence with N*M gri原创 2016-04-09 22:15:16 · 391 阅读 · 0 评论 -
Land oj 1609 - Han Move (模拟)
Problem 1609 - Han MoveTime Limit: 1000MS Memory Limit: 65536KB Total Submit: 619 Accepted: 161 Special Judge: NoDescriptionCyy and Fzz are Han Move lovers. One day, they gather原创 2016-04-09 22:35:16 · 366 阅读 · 0 评论 -
UESTC - 1045 Lovely princess (模拟)水
UESTC - 1045Lovely princessTime Limit: 1000MS Memory Limit: 65535KB 64bit IO Format:原创 2016-05-08 22:24:32 · 522 阅读 · 0 评论