OpenJudge

X0302:阶乘计算修改版

总时间限制:
2000ms
内存限制:
1024kB
描述

阶乘计算修正,用64位和32位整型数同时输出阶乘计算结果来观察整数中的内在规律。

输入
输出
用64位和32位整型数同时输出1到17的阶乘。
样例输入
样例输出
1 0000000000000000000000000000000000000000000000000000000000000001
                 1             1   00000000000000000000000000000001
 2 0000000000000000000000000000000000000000000000000000000000000010
                 2             2   00000000000000000000000000000010
 3 0000000000000000000000000000000000000000000000000000000000000110
                 6             6   00000000000000000000000000000110
 4 0000000000000000000000000000000000000000000000000000000000011000
                24            24   00000000000000000000000000011000
 5 0000000000000000000000000000000000000000000000000000000001111000
               120           120   00000000000000000000000001111000
 6 0000000000000000000000000000000000000000000000000000001011010000
               720           720   00000000000000000000001011010000
 7 0000000000000000000000000000000000000000000000000001001110110000
              5040          5040   00000000000000000001001110110000
 8 0000000000000000000000000000000000000000000000001001110110000000
             40320         40320   00000000000000001001110110000000
 9 0000000000000000000000000000000000000000000001011000100110000000
            362880        362880   00000000000001011000100110000000
10 0000000000000000000000000000000000000000001101110101111100000000
           3628800       3628800   00000000001101110101111100000000
11 0000000000000000000000000000000000000010011000010001010100000000
          39916800      39916800   00000010011000010001010100000000
12 0000000000000000000000000000000000011100100011001111110000000000
         479001600     479001600   00011100100011001111110000000000
13 0000000000000000000000000000000101110011001010001100110000000000
        6227020800    1932053504   01110011001010001100110000000000
14 0000000000000000000000000001010001001100001110110010100000000000
       87178291200    1278945280   01001100001110110010100000000000
15 0000000000000000000000010011000001110111011101110101100000000000
     1307674368000    2004310016   01110111011101110101100000000000
16 0000000000000000000100110000011101110111011101011000000000000000
    20922789888000    2004189184   01110111011101011000000000000000
17 0000000000000001010000110111111011101110110011011000000000000000
   355687428096000    -288522240   11101110110011011000000000000000
全局题号
8934
提交次数
3
尝试人数
2
通过人数
2