結果
問題 |
No.500 階乗電卓
|
ユーザー |
|
提出日時 | 2024-06-07 11:41:26 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 154 bytes |
コンパイル時間 | 679 ms |
コンパイル使用メモリ | 82,704 KB |
実行使用メモリ | 53,976 KB |
最終ジャッジ日時 | 2024-12-25 14:44:41 |
合計ジャッジ時間 | 2,113 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 7 WA * 13 |
ソースコード
N = int(input()) MOD = 10**12 ans = 1 for i in range(1, N + 1): ans *= i ans %= MOD if ans == 0: print(ans) exit() print(ans)