結果
問題 | No.2865 Base 10 Subsets 2 |
ユーザー | sasa8uyauya |
提出日時 | 2024-08-30 22:00:04 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 40 ms / 2,000 ms |
コード長 | 207 bytes |
コンパイル時間 | 354 ms |
コンパイル使用メモリ | 82,436 KB |
実行使用メモリ | 53,872 KB |
最終ジャッジ日時 | 2024-08-30 22:00:06 |
合計ジャッジ時間 | 1,814 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 12 |
ソースコード
s,k=input().split() s=list(map(int,s.zfill(20))) k=int(k) t=[] for i in range(20): c=1 for j in range(i+1,20): c*=s[j]+1 t+=[0] while k-c>=1: k-=c t[-1]+=1 print(int("".join(map(str,t))))