結果
| 問題 |
No.3030 Kruskal-Katona
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-02-21 21:41:07 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 591 bytes |
| コンパイル時間 | 314 ms |
| コンパイル使用メモリ | 82,900 KB |
| 実行使用メモリ | 97,140 KB |
| 最終ジャッジ日時 | 2025-02-21 21:41:16 |
| 合計ジャッジ時間 | 4,399 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | TLE * 1 -- * 26 |
ソースコード
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
n,i = map(int,input().split())
#alist = list(map(int,input().split()))
#alist = []
#s = input()
#n,m = map(int,input().split())
#for i in range(n):
# alist.append(list(map(int,input().split())))
ans = []
while n > 0:
for j in range(i,10000):
if math.comb(j,i) > n:
j -= 1
ans.append(j)
n -= math.comb(j,i)
i -= 1
break
print(*ans)