結果
問題 | No.2671 NUPC Decompressor |
ユーザー |
|
提出日時 | 2024-03-15 21:22:19 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 38 ms / 2,000 ms |
コード長 | 584 bytes |
コンパイル時間 | 265 ms |
コンパイル使用メモリ | 81,924 KB |
実行使用メモリ | 54,440 KB |
最終ジャッジ日時 | 2024-09-30 00:18:35 |
合計ジャッジ時間 | 1,484 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 13 |
ソースコード
S = inputR = rangeP = printdef I(): return int(S())def M(): return map(int, S().split())def L(): return list(M())def O(): return list(map(int, open(0).read().split()))def yn(b): print("Yes" if b else "No")biga = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"smaa = "abcdefghijklmnopqrstuvwxyz"def z(s):ans = ""for i in s:if i == '2':ans += anselif i != '1':ans += ireturn ansK = int(input())a = []for i in range(16):x = ""for j in range(8):if j % 2 == 0:x += "NUPC"[j // 2]else:x += "12"[(i >> (j // 2)) & 1]a.append(z(x))a.sort()print(a[K - 1])