結果
| 問題 | No.129 お年玉(2) |
| コンテスト | |
| ユーザー |
sekiya9311
|
| 提出日時 | 2016-10-20 01:50:07 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 129 ms / 5,000 ms |
| コード長 | 176 bytes |
| 記録 | |
| コンパイル時間 | 143 ms |
| コンパイル使用メモリ | 77,568 KB |
| 最終ジャッジ日時 | 2025-12-03 22:14:57 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 46 |
ソースコード
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 //= int(1e3) N %= M print comb(M, N) % int(1e9)
sekiya9311