結果
問題 |
No.129 お年玉(2)
|
ユーザー |
|
提出日時 | 2017-02-18 12:48:34 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 47 ms / 5,000 ms |
コード長 | 209 bytes |
コンパイル時間 | 110 ms |
コンパイル使用メモリ | 12,800 KB |
実行使用メモリ | 12,160 KB |
最終ジャッジ日時 | 2024-11-28 00:45:34 |
合計ジャッジ時間 | 3,343 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 46 |
ソースコード
#!/usr/bin/env python # -*- coding: utf-8 -*- from math import factorial c = lambda y, x: factorial(y) // factorial(x) // factorial(y - x) n = int(input()) m = int(input()) print(c(m, n // 1000 % m) % 10**9)