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