摘要:        
链接: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
阅读(260)
评论(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
阅读(414)
评论(0)
推荐(0)
        
            
        
        
摘要:        
链接:https://www.nowcoder.com/acm/contest/70/F来源:牛客网 在一个n*n的国际象棋棋盘上有m个皇后。 一个皇后可以攻击其他八个方向的皇后(上、下、左、右、左上、右上、左下、右下)。 对于某个皇后,如果某一个方向上有其他皇后,那么这个方向对她就是不安全的。 对    阅读全文
posted @ 2018-03-16 22:47
ACRykl
阅读(191)
评论(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
阅读(132)
评论(0)
推荐(0)
        
 
                    
                     
                    
                 
                    
                
 
 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号