結果
問題 |
No.8045 怪文書
|
ユーザー |
|
提出日時 | 2019-04-01 21:25:20 |
言語 | Python2 (2.7.18) |
結果 |
RE
|
実行時間 | - |
コード長 | 137 bytes |
コンパイル時間 | 467 ms |
コンパイル使用メモリ | 6,944 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-11-26 11:00:43 |
合計ジャッジ時間 | 934 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 1 |
other | RE * 20 |
ソースコード
N, M = map(int, raw_input()) if M >= N: print 0 exit() ans = 1 for i in xrange(1, N+1): ans = ans * i % M print ans