上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 30 下一页
摘要: A. Chess Tourney time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output A. Chess Tourney time li 阅读全文
posted @ 2017-08-25 13:11 浅忆~ 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 恢复内容开始 One day Kefa found n baloons. For convenience, we denote color of i-th baloon as si — lowercase letter of the Latin alphabet. Also Kefa has k f 阅读全文
posted @ 2017-08-20 19:15 浅忆~ 阅读(135) 评论(0) 推荐(0) 编辑
摘要: Okabe needs to renovate the Future Gadget Laboratory after he tried doing some crazy experiments! The lab is represented as an n by n square grid of i 阅读全文
posted @ 2017-08-18 10:20 浅忆~ 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 给出N个整数,对着N个整数进行排序 Input Output Input示例 Output示例 阅读全文
posted @ 2017-08-17 16:45 浅忆~ 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 输入2个正整数A,B,求A与B的最小公倍数。 Input Output Input示例 Output示例 阅读全文
posted @ 2017-08-17 13:24 浅忆~ 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 典型例题:51nod 1135 原根 设m是正整数,a是整数,若a模m的阶等于φ(m),则称a为模m的一个原根。(其中φ(m)表示m的欧拉函数) 给出1个质数P,找出P最小的原根。 Input 输入1个质数P(3 <= P <= 10^9) Output 输出P最小的原根。 Input示例 3 Ou 阅读全文
posted @ 2017-08-17 11:16 浅忆~ 阅读(1180) 评论(0) 推荐(0) 编辑
摘要: N个人坐成一个圆环(编号为1 - N),从第1个人开始报数,数到K的人出列,后面的人重新从1开始报数。问最后剩下的人的编号。 例如:N = 3,K = 2。2号先出列,然后是1号,最后剩下的是3号。 Input Output Input示例 Output示例 F(1)=0 当有2个人的时候(N=2) 阅读全文
posted @ 2017-08-16 21:17 浅忆~ 阅读(169) 评论(0) 推荐(0) 编辑
摘要: Mister B once received a gift: it was a book about aliens, which he started read immediately. This book had c pages. At first day Mister B read v0 pag 阅读全文
posted @ 2017-08-16 17:18 浅忆~ 阅读(169) 评论(0) 推荐(0) 编辑
摘要: Problem Description 1堆石子有n个,两人轮流取.先取者第1次可以取任意多个,但不能全部取完.以后每次取的石子数不能超过上次取子数的2倍。取完者胜.先取者负输出"Second win".先取者胜输出"First win". Input 输入有多组.每组第1行是2<=n<2^31. 阅读全文
posted @ 2017-08-15 19:48 浅忆~ 阅读(204) 评论(0) 推荐(0) 编辑
摘要: vi还没配置(旧电脑,不想再折腾啦),空格缩进不合格,,请见谅 A(三位数,取第一位和最后一位) B (可以联想成求两个集合的交集) C(求最大公倍数-->两个数相乘除以两个数的最大公约数就是最小公倍数,给n个数求n个数的最小公倍数,只能遍历啦 ) D - Transit Tree Path Tim 阅读全文
posted @ 2017-08-14 21:40 浅忆~ 阅读(126) 评论(0) 推荐(0) 编辑
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 30 下一页