上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 30 下一页
摘要: Problem Description C国的死对头A国这段时间正在进行军事演习,所以C国间谍头子Derek和他手下Tidy又开始忙乎了。A国在海岸线沿直线布置了N个工兵营地,Derek和Tidy的任务就是要监视这些工兵营地的活动情况。由于采取了某种先进的监测手段,所以每个工兵营地的人数C国都掌握的 阅读全文
posted @ 2017-08-09 10:39 浅忆~ 阅读(115) 评论(0) 推荐(0) 编辑
摘要: Problem Description 看病要排队这个是地球人都知道的常识。不过经过细心的0068的观察,他发现了医院里排队还是有讲究的。0068所去的医院有三个医生(汗,这么少)同时看病。而看病的人病情有轻重,所以不能根据简单的先来先服务的原则。所以医院对每种病情规定了10种不同的优先级。级别为1 阅读全文
posted @ 2017-08-09 10:33 浅忆~ 阅读(136) 评论(0) 推荐(0) 编辑
摘要: Problem Description The WHU ACM Team has a big cup, with which every member drinks water. Now, we know the volume of the water in the cup, can you tel 阅读全文
posted @ 2017-08-09 10:09 浅忆~ 阅读(98) 评论(0) 推荐(0) 编辑
摘要: Problem Description 有三个正整数a,b,c(0<a,b,c<10^6),其中c不等于b。若a和c的最大公约数为b,现已知a和b,求满足条件的最小的c。 Input 第一行输入一个n,表示有n组测试数据,接下来的n行,每行输入两个正整数a,b。 Output 输出对应的c,每组测试 阅读全文
posted @ 2017-08-09 10:05 浅忆~ 阅读(150) 评论(0) 推荐(0) 编辑
摘要: Problem Description You want to processe a sequence of n distinct integers by swapping two adjacent sequence elements until the sequence is sorted in 阅读全文
posted @ 2017-08-09 10:03 浅忆~ 阅读(100) 评论(0) 推荐(0) 编辑
摘要: Problem Description As we all know, machine scheduling is a very classical problem in computer science and has been studied for a very long history. S 阅读全文
posted @ 2017-08-09 09:52 浅忆~ 阅读(132) 评论(0) 推荐(0) 编辑
摘要: A square number is an integer number whose square root is also an integer. For example 1, 4, 81 are some square numbers. Given two numbers a and b you 阅读全文
posted @ 2017-08-09 09:49 浅忆~ 阅读(179) 评论(0) 推荐(0) 编辑
摘要: Watchmen are in a danger and Doctor Manhattan together with his friend Daniel Dreiberg should warn them as soon as possible. There are n watchmen on a 阅读全文
posted @ 2017-08-09 09:45 浅忆~ 阅读(138) 评论(0) 推荐(0) 编辑
摘要: There are n pictures delivered for the new exhibition. The i-th painting has beauty ai. We know that a visitor becomes happy every time he passes from 阅读全文
posted @ 2017-08-09 09:43 浅忆~ 阅读(167) 评论(0) 推荐(0) 编辑
摘要: Friends are going to play console. They have two joysticks and only one charger for them. Initially first joystick is charged at a1 percent and second 阅读全文
posted @ 2017-08-09 09:41 浅忆~ 阅读(158) 评论(0) 推荐(0) 编辑
上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 30 下一页