結果

問題 No.2671 NUPC Decompressor
ユーザー moon17
提出日時 2025-03-23 17:24:02
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 38 ms / 2,000 ms
コード長 159 bytes
コンパイル時間 343 ms
コンパイル使用メモリ 82,364 KB
実行使用メモリ 54,020 KB
最終ジャッジ日時 2025-03-23 17:24:04
合計ジャッジ時間 2,042 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

k=int(input())
n=4
d='NUPC'
ans=[]
for i in range(1<<n):
  t=''
  for j in range(n):
    t+=d[j]
    if i>>j&1:
      t+=t
  ans+=t,
ans.sort()
print(ans[k-1])
0