摘要: 太水了。感觉有点儿浪费时间 题目背景 Bessie 处于半梦半醒的状态。过了一会儿,她意识到她在数数,不能入睡。 题目描述 Bessie的大脑反应灵敏,仿佛真实地看到了她数过的一个又一个数。她开始注意每一个数码(0..9):每一个数码在计数的过程中出现过多少次? 给出两个整数M 和N (1 ≤M ≤ 阅读全文
posted @ 2018-05-02 19:47 神韵袖藏 阅读(270) 评论(0) 推荐(0) 编辑
摘要: 题目背景 无 题目描述 今天小明学会了进制转换,比如(10101)2 ,那么它的十进制表示的式子就是 : 1*2^4+0*2^3+1*2^2+0*2^1+1*2^0, 那么请你编程实现,将一个M进制的数N转换成十进制表示的式子。 注意:当系数为0时,该单项式要省略。 输入输出格式 输入格式: 两个数 阅读全文
posted @ 2018-05-02 19:24 神韵袖藏 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 若一个数(首位不为零)从左向右读与从右向左读都一样,我们就将其称之为回文数。 例如:给定一个10进制数56,将56加65(即把56从右向左读),得到121是一个回文数。 又如:对于10进制数87: STEP1:87+78 = 165 STEP2:165+561 = 726 STEP3:726+627 阅读全文
posted @ 2018-05-01 14:23 神韵袖藏 阅读(385) 评论(0) 推荐(0) 编辑
摘要: Give you a lot of positive integers, just to find out how many prime numbers there are. Input There are a lot of cases. In each case, there is an inte 阅读全文
posted @ 2018-04-10 13:07 神韵袖藏 阅读(119) 评论(0) 推荐(0) 编辑
摘要: After the 32nd ACM/ICPC regional contest, Wiskey is beginning to prepare for CET-6. He has an English words table and read it every morning. One day, 阅读全文
posted @ 2018-04-10 13:04 神韵袖藏 阅读(193) 评论(0) 推荐(0) 编辑
摘要: We once did a lot of recursional problem . I think some of them is easy for you and some if hard for you. Now there is a very easy problem . I think y 阅读全文
posted @ 2018-04-10 13:00 神韵袖藏 阅读(159) 评论(0) 推荐(0) 编辑
摘要: Mickey is interested in probability recently. One day , he played a game which is about probability with mini.First mickey gives a letter and a word t 阅读全文
posted @ 2018-04-10 12:57 神韵袖藏 阅读(124) 评论(0) 推荐(0) 编辑
摘要: In this problem you need to make a multiply table of N * N ,just like the sample out. The element in the i th row and j th column should be the produc 阅读全文
posted @ 2018-04-10 12:54 神韵袖藏 阅读(126) 评论(0) 推荐(0) 编辑
摘要: Do you like playing basketball ? If you are , you may know the NBA Skills Challenge . It is the content of the basketball skills . It include several 阅读全文
posted @ 2018-04-10 12:48 神韵袖藏 阅读(102) 评论(0) 推荐(0) 编辑
摘要: Give you a lot of positive integers, just to find out how many prime numbers there are. Input There are a lot of cases. In each case, there is an inte 阅读全文
posted @ 2018-04-08 23:09 神韵袖藏 阅读(147) 评论(0) 推荐(0) 编辑