結果
| 問題 | No.129 お年玉(2) |
| コンテスト | |
| ユーザー |
sekiya9311
|
| 提出日時 | 2016-10-20 01:50:07 |
| 言語 | PyPy2 (7.3.20) |
| 結果 |
AC
|
| 実行時間 | 61 ms / 5,000 ms |
| + 763µs | |
| コード長 | 176 bytes |
| 記録 | |
| コンパイル時間 | 66 ms |
| コンパイル使用メモリ | 80,896 KB |
| 実行使用メモリ | 82,544 KB |
| 最終ジャッジ日時 | 2026-07-18 09:57:53 |
| 合計ジャッジ時間 | 4,761 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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