結果
問題 |
No.500 階乗電卓
|
ユーザー |
|
提出日時 | 2017-04-09 19:38:40 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 168 bytes |
コンパイル時間 | 126 ms |
コンパイル使用メモリ | 82,644 KB |
実行使用メモリ | 75,264 KB |
最終ジャッジ日時 | 2024-07-18 01:36:44 |
合計ジャッジ時間 | 1,957 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 2 |
other | AC * 16 WA * 4 |
ソースコード
f = 1 N = int( input() ) N = min( N, 10000 ) for i in range( 1, N + 1, 1 ): f *= i ans = str( f % int( 1e12 ) ) while len( ans ) < 12: ans = "0" + ans print( ans )