結果
問題 |
No.129 お年玉(2)
|
ユーザー |
![]() |
提出日時 | 2017-07-28 18:20:49 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 287 bytes |
コンパイル時間 | 109 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-10-10 04:56:13 |
合計ジャッジ時間 | 2,943 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 4 WA * 2 RE * 40 |
ソースコード
N=int (input ()) M=int(input()) N//=1000 N%=M if N==0: print(1) else: L=1000000000 for i in range (1,N-1): M*=M-i # if M>1000000000: M%=1000000000 for i in range (1,N-1): N*=N-i # if N>1000000000: N%=1000000000 M//=N print (M)