
Sicily
dragonir
在读大学生
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Sicily 4700. 小明与奶牛
Description 小明是奶牛场的员工,已知奶牛按品种分为3类,分别编号为1,2,3,小明的任务是找出每一类奶牛的最大产奶量。给定一个整数N(1代表奶牛的总数,并且给出每头奶牛的编号(1,..,3)以及产奶量(1,…,1,000,000),找出每类奶牛中最大的产奶量。Input第一行为T(1),代表用例个数。接下来每个用例中,第一行为一个整数N,代表奶牛原创 2015-04-04 21:45:05 · 629 阅读 · 0 评论 -
Sicily 14513. Aaah!
14513. Aaah! Time Limit: 1sec Memory Limit:256MBDescriptionJon Marius shouted too much at the recent Justin原创 2015-05-19 14:03:32 · 839 阅读 · 0 评论 -
Sicily 1011. Lenny's Lucky Lotto
1011. Lenny's Lucky Lotto Time Limit: 1sec Memory Limit:32MBDescriptionLenny likes to play the game of lotto. In the lotto game, he picks a list of N u原创 2015-05-19 13:24:09 · 828 阅读 · 0 评论 -
Sicily 1002. Static Member
1002. Static Member Time Limit: 1sec Memory Limit:256MBDescription/* 测试static member*/完成类Int,可以加入你觉得需要原创 2015-05-05 14:32:37 · 739 阅读 · 0 评论 -
Sicily 1814. 日期计算问题
【转自网络大神,由本人整理】Description试用 C++的类来表示日期,给定 2 个日期 yyyy.mm.dd 求两个日期间相差的天数。 Input第 1 行为一个正整数T,表示测试数。对于每个测试点,第 1 行与第 2 行分别有两个日期 yyyy.mm.dd。 Output对于每个测试点,输出一行数字,表示相差的天数。原创 2015-04-28 14:37:09 · 847 阅读 · 0 评论 -
Sicily 1780. Faulty Odometer Again
DescriptionYou are given a car odometer which displays the miles traveled as an integer. The odometer has a defect, however: it proceeds from the digit 1 to the digit 3, from the digit 4 to the di原创 2015-04-28 14:30:59 · 810 阅读 · 0 评论 -
Sicily 1782. Knapsack
DescriptionJohn wants to carry several items with a knapsack. Each item has integral size and can not be divided into smaller parts. The knapsack also has an integral capacity. Given n items, what原创 2015-04-28 14:11:08 · 402 阅读 · 0 评论 -
Sicily 11157. Crossword
11157. Crossword Time Limit: 1sec Memory Limit:256MBDescriptionMirko has assembled an excellent crossword puzzle and now he wants to frame it. Mir原创 2015-05-10 12:36:01 · 896 阅读 · 0 评论 -
Sicily 1500. Prime Gap
DescriptionThe sequence of n ? 1 consecutive composite numbers (positive integers that are not prime and not equal to 1) lying between two successive prime numbers p and p + n is called a prime原创 2015-04-14 14:28:41 · 648 阅读 · 0 评论 -
Sicily 1543. Completing Brackets
DescriptionA series of brackets is complete if we can pair off each left bracket '[' with a right bracket ']' that occurs later in the series. Every bracket must participate in exactly one such pa原创 2015-04-14 14:49:42 · 451 阅读 · 0 评论 -
Sicily 1511. Conversions
Time Limit: 1sec Memory Limit:32MBDescriptionConversion between the metric and English measurement systems is relatively simple. Often, it involves either multiplying or dividing by a const原创 2015-04-14 14:11:46 · 560 阅读 · 0 评论 -
第七周程序设计课解题报告
第七周程序设计课解题报告1.different triangs题目大意:给出n条边,任取其中三条,问有多少种情况取出的三条边能组成三角形。解:先使用数组把边长存起来,然后用三重循环去枚举取边方案,再用if语句判断取出的三条边是否能组成三角形(我使用了函数实现这个功能) 代码:#include #include #include #include #include转载 2015-04-12 22:51:13 · 622 阅读 · 0 评论 -
Sicily 13290 Play with Strings powered by wangbin
13290. Play with StringsConstraintsTime Limit: 1 secs, Memory Limit: 256 MBDescriptionGiven a string X, you can swap any two characters in X as many times as you want. You wonder whether it原创 2015-03-28 23:38:52 · 680 阅读 · 0 评论 -
Sicily 6084. Times17
DescriptionAfter realizing that there is much money to be made in software development, Farmer John has launched a small side business writing short programs for clients in the local farming ind原创 2015-04-04 21:16:09 · 545 阅读 · 0 评论 -
Sicily 11599. Tight words
11599. Tight words Time Limit: 1sec Memory Limit:256MBDescriptionGiven is an alphabet {0, 1, ... , k}, 0 . W原创 2015-04-04 20:52:59 · 644 阅读 · 0 评论 -
Sicily 1119. Factstone Benchmark
1119. Factstone Benchmark Time Limit: 1sec Memory Limit:32MBDescriptionAmtel has announced that it will re原创 2015-05-19 13:40:22 · 997 阅读 · 0 评论