結果
問題 |
No.500 階乗電卓
|
ユーザー |
|
提出日時 | 2017-04-07 22:35:51 |
言語 | Python2 (2.7.18) |
結果 |
WA
|
実行時間 | - |
コード長 | 148 bytes |
コンパイル時間 | 47 ms |
コンパイル使用メモリ | 7,040 KB |
実行使用メモリ | 6,528 KB |
最終ジャッジ日時 | 2024-07-16 01:04:47 |
合計ジャッジ時間 | 974 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 18 WA * 2 |
ソースコード
f = 1 for i in xrange(1, min(input()+1, 100)): f = f * i if f % (10**12) == 0: print "%012d" % (f % (10**12)) else: print f % (10**12)