結果

問題 No.3045 怪文書
ユーザー nebukuro09nebukuro09
提出日時 2019-04-01 21:26:27
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 145 bytes
コンパイル時間 243 ms
コンパイル使用メモリ 7,040 KB
実行使用メモリ 11,648 KB
最終ジャッジ日時 2024-05-04 20:48:00
合計ジャッジ時間 3,913 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
11,520 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 11 ms
6,272 KB
testcase_04 AC 11 ms
6,144 KB
testcase_05 AC 12 ms
6,272 KB
testcase_06 WA -
testcase_07 AC 12 ms
6,144 KB
testcase_08 WA -
testcase_09 AC 15 ms
6,144 KB
testcase_10 WA -
testcase_11 AC 26 ms
6,272 KB
testcase_12 AC 28 ms
6,272 KB
testcase_13 TLE -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

N, M = map(int, raw_input().split())
if M >= N:
    print 0
    exit()
    
ans = 1
for i in xrange(1, N+1):
    ans = ans * i % M
    
print ans
0