結果
| 問題 | No.3030 Kruskal-Katona |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-02-21 21:46:03 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 440 ms / 2,000 ms |
| コード長 | 618 bytes |
| コンパイル時間 | 511 ms |
| コンパイル使用メモリ | 82,584 KB |
| 実行使用メモリ | 90,336 KB |
| 最終ジャッジ日時 | 2025-02-21 21:46:10 |
| 合計ジャッジ時間 | 6,281 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 27 |
ソースコード
import collections,sys,math,functools,operator,itertools,bisect,heapq,decimal,string,time,random
#sys.setrecursionlimit(10**9)
#sys.set_int_max_str_digits(0)
#input = sys.stdin.readline
def solve(n,i):
ans = []
while n > 0:
for j in range(i,1000000000):
if math.comb(j,i) > n:
j -= 1
ans.append(j)
n -= math.comb(j,i)
i -= 1
break
print(*ans)
#for n in range(100000000-1000,100000000+1):
# for i in range(1,101):
# print(n,i)
# solve(n,i)
#exit()
n,i = map(int,input().split())
solve(n,i)