結果

問題 No.2671 NUPC Decompressor
ユーザー 👑 KA37RI
提出日時 2024-03-16 11:39:15
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 41 ms / 2,000 ms
コード長 190 bytes
コンパイル時間 298 ms
コンパイル使用メモリ 82,388 KB
実行使用メモリ 52,096 KB
最終ジャッジ日時 2024-09-30 03:54:50
合計ジャッジ時間 1,534 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

nupc = "NUPC"
comp = []
for x in range(16):
  t = ""
  for i in range(4):
    t += nupc[i]
    if x & (1 << i):
      t += t
  comp.append(t)

comp.sort()
k = int(input()) - 1
print(comp[k])
0