結果
問題 |
No.500 階乗電卓
|
ユーザー |
![]() |
提出日時 | 2020-11-05 15:51:14 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 172 bytes |
コンパイル時間 | 411 ms |
コンパイル使用メモリ | 82,176 KB |
実行使用メモリ | 52,224 KB |
最終ジャッジ日時 | 2024-07-22 11:12:35 |
合計ジャッジ時間 | 2,352 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 18 WA * 2 |
ソースコード
N = int(input()) ANS = 1 MOD = 10**12 for i in range(1,N+1): ANS *= i if ANS % MOD == 0: print('000000000000') exit() ANS = ANS % MOD print(ANS)