随笔分类 - dp
摘要:1145 - Dice (I) PDF (English) Statistics Forum Time Limit: 2 second(s) Memory Limit: 32 MB You have N dices; each of them has K faces numbered from 1
阅读全文
摘要:1217 - Neighbor House (II) PDF (English) Statistics Forum Time Limit: 2 second(s) Memory Limit: 32 MB A soap company wants to advertise their product
阅读全文
摘要:背景 又是一道水题 描述 在某个神秘的星球上有一种货币,它有一种奇怪的兑换规则 你有且仅有一枚面值为n的金币,你可以去银行进行兑换,也可以不兑换 如果去银行兑换,兑换的规则是这样的:用面值为a的金币去兑换可以换到a/2,a/3,a/4这三枚硬币(如果 是小数则截尾取整),你可以兑换多次 读入n 输出
阅读全文
摘要:描述 上届的高三在这个暑假终于要到各个城市奔向他们的大学生活了。奇怪的是学校这次异常阔气,说要用三台车子去载他们上学。上届高三的师兄们异常兴奋……可惜的是临行的时候,学校终于露出它“狰狞”的面孔: 一、油费要学生自己给 二、去第k 个城市的条件是,前k-1 个城市都要被去过 三、同时只能有一部车子在
阅读全文
摘要:1114. Boxes Time limit: 0.6 secondMemory limit: 64 MB N boxes are lined up in a sequence (1 ≤ N ≤ 20). You have A red balls and B blue balls (0 ≤ A ≤
阅读全文
摘要:Problem 2236 第十四个目标 Accept: 4 Submit: 6Time Limit: 1000 mSec Memory Limit : 32768 KB Accept: 4 Submit: 6Time Limit: 1000 mSec Memory Limit : 32768 KB
阅读全文
摘要:1382 - The Queue PDF (English) Statistics Forum Time Limit: 2 second(s) Memory Limit: 32 MB On some special occasions Nadia's company provide very spe
阅读全文
摘要:1226 - One Unit Machine PDF (English) Statistics Forum Time Limit: 2 second(s) Memory Limit: 32 MB OUM is a one unit machine which processes jobs. Sin
阅读全文
摘要:1298 - One Theorem, One Year PDF (English) Statistics Forum Time Limit: 2 second(s) Memory Limit: 32 MB A number is Almost-K-Prime if it has exactly K
阅读全文
摘要:1011 - Marriage Ceremonies PDF (English) Statistics Forum Time Limit: 2 second(s) Memory Limit: 32 MB You work in a company which organizes marriages.
阅读全文
摘要:Description Mr.Dog was fired by his company. In order to support his family, he must find a new job as soon as possible. Nowadays, It's hard to have a
阅读全文
摘要:C. Famil Door and Brackets time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output As Famil Door
阅读全文
摘要:D. Babaei and Birthday Cake As you know, every birthday party has a cake! This time, Babaei is going to prepare the very special birthday party's cake
阅读全文
摘要:描述 在河上有一座独木桥,一只青蛙想沿着独木桥从河的一侧跳到另一侧。在桥上有一些石子,青蛙很讨厌踩在这些石子上。由于桥的长度和青蛙一次跳过的距离都是正整数,我们可以把独木桥上青蛙可能到达的点看成数轴上的一串整点:0,1,……,L(其中L是桥的长度)。坐标为0的点表示桥的起点,坐标为L的点表示桥的终点
阅读全文
摘要:Count the string Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 7190 Accepted Submission(s): 331
阅读全文
摘要:C1. 组队活动 SmallTime Limit: 1000msMemory Limit: 131072KB64-bit integer IO format: %lld Java class name: MainSubmit Status PID: 51280BNU ACM校队一共有名队员,从到标号
阅读全文
摘要:E. Wet Shark and Blockstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThere are b blocks of dig
阅读全文
摘要:Pebbles Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 1393 Accepted Submission(s): 797 Problem
阅读全文
摘要:Travelling Time Limit: 6000/3000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 5762 Accepted Submission(s): 1857 Prob
阅读全文

浙公网安备 33010602011771号