結果

問題 No.2671 NUPC Decompressor
ユーザー SoniSoni
提出日時 2024-03-15 21:30:37
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 44 ms / 2,000 ms
コード長 1,266 bytes
コンパイル時間 171 ms
コンパイル使用メモリ 81,572 KB
実行使用メモリ 55,604 KB
最終ジャッジ日時 2024-03-15 21:30:39
合計ジャッジ時間 1,594 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
55,604 KB
testcase_01 AC 41 ms
55,604 KB
testcase_02 AC 40 ms
55,604 KB
testcase_03 AC 41 ms
55,604 KB
testcase_04 AC 40 ms
55,604 KB
testcase_05 AC 40 ms
55,604 KB
testcase_06 AC 40 ms
55,604 KB
testcase_07 AC 41 ms
55,604 KB
testcase_08 AC 41 ms
55,604 KB
testcase_09 AC 42 ms
55,604 KB
testcase_10 AC 44 ms
55,604 KB
testcase_11 AC 44 ms
55,604 KB
testcase_12 AC 44 ms
55,604 KB
testcase_13 AC 44 ms
55,604 KB
testcase_14 AC 43 ms
55,604 KB
testcase_15 AC 44 ms
55,604 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys

# import bisect #二分探索
# import math

from collections import deque
from collections import defaultdict


def I():
    return int(sys.stdin.readline().rstrip())


def MI():
    return map(int, sys.stdin.readline().rstrip().split())


def LI():
    return list(map(int, sys.stdin.readline().rstrip().split()))


def LI2():
    return list(map(int, sys.stdin.readline().rstrip()))


def S():
    return sys.stdin.readline().rstrip()


def LS():
    return list(sys.stdin.readline().rstrip().split())


def LS2():
    return list(sys.stdin.readline().rstrip())

# 1次元の配列
# list(map(int, input().split()))
# 2次元の配列
# [list(map(int, input().split())) for i in range()]
# wsl pypy3 ファイル名

input = sys.stdin.readline

K = I()
s_list = []
for i in range(1, 3):
    for j in range(1, 3):
        for k in range(1, 3):
            for l in range(1, 3):
                comp = "N"+f'{i}' + "U"+f'{j}' + "P"+f'{k}' + "C"+f'{l}'
                s = ""
                for m in range(8):
                    if m % 2 == 0:
                        s += comp[m]
                    else:
                        if comp[m] == "2":
                            s += s
                s_list.append(s)

s_list.sort()
print(s_list[K-1])
0