随笔分类 -  c++基础知识

摘要:题目:阶乘位数9的阶乘等于:362880 它的二进制表示为:1011000100110000000 这个数字共有19位。请你计算,9999 的阶乘的二进制表示一共有多少位? 注意:需要提交的是一个整数,不要填写任何无关内容(比如说明解释等)思路:把每一个数都用2的x的... 阅读全文
posted @ 2019-04-26 23:07 black_hole6 阅读(337) 评论(0) 推荐(0)
摘要:A permutation p is an ordered group of numbers p1, p2, ..., pn, consisting of ndistinct positive integers, each is no more than ... 阅读全文
posted @ 2019-02-17 19:43 black_hole6 阅读(277) 评论(0) 推荐(0)
摘要:Zane the wizard is going to perform a magic show shuffling the cups.There are n cups, numbered from 1 to n, placed along the x-axis on... 阅读全文
posted @ 2018-12-18 11:10 black_hole6 阅读(153) 评论(0) 推荐(0)