上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 15 下一页
摘要: 链接:https://www.nowcoder.com/acm/contest/85/C来源:牛客网 题目描述 毕竟是元宵节,晚上还是要吃几个元宵。 Etéreo 家可是个大家庭,元宵的数量,甚至是餐具的数量,都多的惊人。现在,爱数学的 Etéreo 又来问你有趣的数学题了,快来秒掉它! Etére 阅读全文
posted @ 2018-03-17 22:26 ACRykl 阅读(277) 评论(0) 推荐(0) 编辑
摘要: 链接:https://www.nowcoder.com/acm/contest/70/C来源:牛客网 题目描述 定义一个数字为幸运数字当且仅当它的所有数位都是4或者7。 比如说,47、744、4都是幸运数字而5、17、467都不是。 假设现在有一个数字d,现在想在d上重复k次操作。 假设d有n位,用 阅读全文
posted @ 2018-03-16 23:01 ACRykl 阅读(232) 评论(0) 推荐(0) 编辑
摘要: 链接:https://www.nowcoder.com/acm/contest/70/B来源:牛客网 题目描述 定义一个数字为幸运数字当且仅当它的所有数位都是4或者7。 比如说,47、744、4都是幸运数字而5、17、467都不是。 定义next(x)为大于等于x的第一个幸运数字。给定l,r,请求出 阅读全文
posted @ 2018-03-16 22:56 ACRykl 阅读(392) 评论(0) 推荐(0) 编辑
摘要: 链接:https://www.nowcoder.com/acm/contest/70/F来源:牛客网 在一个n*n的国际象棋棋盘上有m个皇后。 一个皇后可以攻击其他八个方向的皇后(上、下、左、右、左上、右上、左下、右下)。 对于某个皇后,如果某一个方向上有其他皇后,那么这个方向对她就是不安全的。 对 阅读全文
posted @ 2018-03-16 22:47 ACRykl 阅读(184) 评论(0) 推荐(0) 编辑
摘要: Harmonic Number In mathematics, the nth harmonic number is the sum of the reciprocals of the first n natural numbers: In this problem, you are given n 阅读全文
posted @ 2018-03-16 22:13 ACRykl 阅读(130) 评论(0) 推荐(0) 编辑
摘要: Leading and Trailing You are given two integers: n and k, your task is to find the most significant three digits, and least significant three digits o 阅读全文
posted @ 2018-03-15 21:34 ACRykl 阅读(148) 评论(0) 推荐(0) 编辑
摘要: Goldbach's Conjecture Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 7550 Accepted Submission(s) 阅读全文
posted @ 2018-03-15 20:21 ACRykl 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 青蛙的约会 Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 123444 Accepted: 26326 Description 两只青蛙在网上相识了,它们聊得很开心,于是觉得很有必要见一面。它们很高兴地发现它们住在同一条纬度线上 阅读全文
posted @ 2018-03-15 19:54 ACRykl 阅读(81) 评论(0) 推荐(0) 编辑
摘要: Mathematically Hard Mathematically some problems look hard. But with the help of the computer, some problems can be easily solvable. In this problem, 阅读全文
posted @ 2018-03-14 17:25 ACRykl 阅读(109) 评论(0) 推荐(0) 编辑
摘要: Bi-shoe and Phi-shoe Bamboo Pole-vault is a massively popular sport in Xzhiland. And Master Phi-shoe is a very popular coach for his success. He needs 阅读全文
posted @ 2018-03-14 17:22 ACRykl 阅读(142) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 15 下一页