結果
| 問題 | No.129 お年玉(2) |
| コンテスト | |
| ユーザー |
sekiya9311
|
| 提出日時 | 2016-10-20 01:46:22 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 171 bytes |
| 記録 | |
| コンパイル時間 | 288 ms |
| コンパイル使用メモリ | 77,468 KB |
| 最終ジャッジ日時 | 2025-12-03 22:14:51 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 45 WA * 1 |
ソースコード
def comb(n, r): res = 1 for i in range(int(r)): res *= n n -= 1 res //= (i + 1) return res N = input() M = input() N //= 1e3 N %= M print comb(M, N) % int(1e9)
sekiya9311