結果
| 問題 |
No.2671 NUPC Decompressor
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-10-12 16:59:15 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 41 ms / 2,000 ms |
| コード長 | 156 bytes |
| コンパイル時間 | 224 ms |
| コンパイル使用メモリ | 82,256 KB |
| 実行使用メモリ | 52,096 KB |
| 最終ジャッジ日時 | 2024-10-12 16:59:55 |
| 合計ジャッジ時間 | 1,614 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 13 |
ソースコード
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,
print(sorted(ans)[k-1])