結果

問題 No.2671 NUPC Decompressor
コンテスト
ユーザー tassei903
提出日時 2024-03-15 21:26:59
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
AC  
実行時間 26 ms / 2,000 ms
コード長 920 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 188 ms
コンパイル使用メモリ 85,020 KB
実行使用メモリ 53,972 KB
最終ジャッジ日時 2026-04-16 06:30:55
合計ジャッジ時間 1,447 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

import sys
input = lambda :sys.stdin.readline()[:-1]
ni = lambda :int(input())
na = lambda :list(map(int,input().split()))
yes = lambda :print("yes");Yes = lambda :print("Yes");YES = lambda : print("YES")
no = lambda :print("no");No = lambda :print("No");NO = lambda : print("NO")
#######################################################################

ans = []
for i in range(1,3):
    for j in range(1, 3):
        for k in range(1, 3):
            for l in range(1, 3):
                t = []
                t.append("N")
                if i == 2:
                    t = t + t
                t.append("U")
                if j == 2:
                    t = t + t
                t.append("P")
                if k == 2:
                    t = t + t
                t.append("C")
                if l == 2:
                    t = t + t
                ans.append("".join(t))
ans.sort()

n = ni()
print(ans[n-1])
0