結果
| 問題 |
No.129 お年玉(2)
|
| コンテスト | |
| ユーザー |
sekiya9311
|
| 提出日時 | 2016-10-20 01:29:01 |
| 言語 | Python2 (2.7.18) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 187 bytes |
| コンパイル時間 | 782 ms |
| コンパイル使用メモリ | 7,040 KB |
| 実行使用メモリ | 6,912 KB |
| 最終ジャッジ日時 | 2024-11-23 07:33:40 |
| 合計ジャッジ時間 | 3,330 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 5 WA * 5 RE * 36 |
ソースコード
def comb(n, r): res = 1 for i in range(int(r)): res = res * n n -= 1 res = res // (i + 1) return res N = input() M = input() N = N // 1e3 N = N % M print int(comb(M, N) % 1e9)
sekiya9311