上一页 1 ··· 29 30 31 32 33 34 35 36 37 ··· 39 下一页
摘要: A and B are preparing themselves for programming contests.To train their logical thinking and solve problems better, A and B decided to play chess. Du... 阅读全文
posted @ 2015-03-19 12:25 Painting、时光 阅读(109) 评论(0) 推荐(0) 编辑
摘要: Vasya has found a strange device. On the front panel of a device there are: a red button, a blue button and a display showing some positive integer. A... 阅读全文
posted @ 2015-03-19 12:23 Painting、时光 阅读(87) 评论(0) 推荐(0) 编辑
摘要: A word or a sentence in some language is called apangramif all the characters of the alphabet of this language appear in itat least once. Pangrams are... 阅读全文
posted @ 2015-03-19 12:19 Painting、时光 阅读(257) 评论(0) 推荐(0) 编辑
摘要: #include#includeusing namespace std;int main(){ long long begin,end,mid,k; long long n,m; begin = 1;end = 100000000; scanf("%d%d",&n,&m)... 阅读全文
posted @ 2015-03-19 12:07 Painting、时光 阅读(140) 评论(0) 推荐(0) 编辑
摘要: Ford Prefect got a job as a web developer for a small company that makes towels. His current work task is to create a search engine for the website of... 阅读全文
posted @ 2015-03-19 11:02 Painting、时光 阅读(327) 评论(0) 推荐(0) 编辑
摘要: One day Vasya was sitting on a not so interesting Maths lesson and making an origami from a rectangularamm × bmm sheet of paper (a > b). Usually the f... 阅读全文
posted @ 2015-03-18 13:24 Painting、时光 阅读(216) 评论(0) 推荐(0) 编辑
摘要: Description众所周知,我是好人!所以不会出太难的题,题意很简单 给你两个数n和m,问你有多少对正整数对最大公约数是n,最小公倍数是m最后友情提供解题代码(我真是太好人了)void solve(){ long long n, m; scanf("%lld%lld", &n, &m); int... 阅读全文
posted @ 2015-03-18 10:41 Painting、时光 阅读(191) 评论(0) 推荐(0) 编辑
摘要: Description有一天Stubird买了一台变形金刚,店员说,这台变形金刚和其他那种骗小孩子的不一样 他真的能变形。 这台变形金刚有n个部件,他们能互相连接,组成机器人,当然,也可以变形。 但是有一天,The tesseract 的能量突然消失了,部件散落一地,当然有些部件还连接着。 现在你只... 阅读全文
posted @ 2015-03-17 20:25 Painting、时光 阅读(157) 评论(0) 推荐(0) 编辑
摘要: Description一个游戏,在屏幕上有5个格子形成一行,每一秒都会有一个格子闪烁,格子闪烁时你需要保证至少有一只手指在格子上面, 现在我们已经知道第i秒时,第xi个格子会闪烁,我们假设手指的移动不花费时间,你现在用两根手指玩这个游戏, 设初始两根手指都在0处位置,算出n秒过后手指需要移动的最小距... 阅读全文
posted @ 2015-03-17 19:46 Painting、时光 阅读(179) 评论(0) 推荐(0) 编辑
摘要: Description广工的slamdunk可谓是人生赢家,据传说他现在即将拥有一个girlfriend,并且在感情的驱使下他甚至开始学起了做菜! 现在他想为girlfriend做N道菜,每道菜做出来需要Ai分钟,slamdunk一分钟最多能煮M道菜,请问他做完这N道菜所需的最短时间 是多少?(如果... 阅读全文
posted @ 2015-03-17 19:37 Painting、时光 阅读(128) 评论(0) 推荐(0) 编辑
上一页 1 ··· 29 30 31 32 33 34 35 36 37 ··· 39 下一页