上一页 1 ··· 7 8 9 10 11 12 13 14 15 16 下一页
摘要: 【问题描述】 宝批龙,又叫宝气。虽然恐龙已经灭绝数千万年,但是宝批龙却仍然顽强的活在这个世界上,而且经常发宝。 从前有座山,山上有很多个黑曲麻恐的防空洞,每个黑曲麻恐的防空洞里都有若干个宝批龙,宝批龙都发同样的宝。 从前有座山,这座山只有一个山顶。山上有很多条上山的路,每条路的终点都是山顶。 山上有 阅读全文
posted @ 2019-08-07 11:18 ALEZ 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 题目描述 如题,给定一个范围N,你需要处理M个某数字是否为质数的询问(每个数字均在范围1-N内) 如题,给定一个范围N,你需要处理M个某数字是否为质数的询问(每个数字均在范围1-N内) 输入格式 第一行包含两个正整数N、M,分别表示查询的范围和查询的个数。 接下来M行每行包含一个不小于1且不大于N的 阅读全文
posted @ 2019-08-07 11:13 ALEZ 阅读(163) 评论(0) 推荐(0) 编辑
摘要: F. TorCoder time limit per test 3 seconds memory limit per test 256 megabytes input input.txt output output.txt A boy named Leo doesn't miss a single 阅读全文
posted @ 2019-08-06 14:00 ALEZ 阅读(261) 评论(0) 推荐(0) 编辑
摘要: Problem Description HOHO,终于从Speakless手上赢走了所有的糖果,是Gardon吃糖果时有个特殊的癖好,就是不喜欢将一样的糖果放在一起吃,喜欢先吃一种,下一次吃另一种,这样;可是Gardon不知道是否存在一种吃糖果的顺序使得他能把所有糖果都吃完?请你写个程序帮忙计算一下 阅读全文
posted @ 2019-08-06 13:53 ALEZ 阅读(144) 评论(0) 推荐(0) 编辑
摘要: Problem Description Two players, Stan and Ollie, play, starting with two natural numbers. Stan, the first player, subtracts any positive multiple of t 阅读全文
posted @ 2019-08-06 13:47 ALEZ 阅读(162) 评论(0) 推荐(0) 编辑
摘要: The input contains N natural (i.e. positive integer) numbers ( N <= 10000 ). Each of that numbers is not greater than 15000. This numbers are not nece 阅读全文
posted @ 2019-08-06 13:42 ALEZ 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 给你三个整数 N, x, 和 M, 计算下列式子: 给你三个整数 N, x, 和 M, 计算下列式子: code: 阅读全文
posted @ 2019-08-04 11:30 ALEZ 阅读(514) 评论(0) 推荐(0) 编辑
摘要: 关于扩欧: 这个板子我不想再记不住了,所以我推一遍 求解 ax+by = c; 裴蜀定理 : ax+by=gcd(a,b)一定有解 所以如果 c%gcd!=0 则一定无解 同乘以 d/c a(d/c*x)+b(d/c*y)=d; 求解的 答案乘上 c/d 就是原来的答案 由 欧几里得 可以得到 (b 阅读全文
posted @ 2019-08-04 11:27 ALEZ 阅读(210) 评论(0) 推荐(0) 编辑
摘要: As one of the most powerful brushes, zhx is required to give his juniors nn problems. zhx thinks the ithith problem's difficulty is ii. He wants to ar 阅读全文
posted @ 2019-08-02 23:29 ALEZ 阅读(312) 评论(0) 推荐(0) 编辑
摘要: Each person had do something foolish along with his or her growth.But,when he or she did this that time,they could not predict that this thing is a mi 阅读全文
posted @ 2019-08-02 18:11 ALEZ 阅读(174) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 16 下一页