結果
問題 | No.2671 NUPC Decompressor |
ユーザー |
|
提出日時 | 2024-03-15 22:02:11 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 40 ms / 2,000 ms |
コード長 | 325 bytes |
コンパイル時間 | 189 ms |
コンパイル使用メモリ | 82,828 KB |
実行使用メモリ | 53,644 KB |
最終ジャッジ日時 | 2024-09-30 01:13:45 |
合計ジャッジ時間 | 1,494 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 13 |
ソースコード
import itertools import sys input = sys.stdin.readline K = int(input()) T = [] c = 'NUPC' for l in itertools.product([1, 2], repeat=4): t = [] for i in range(len(l)): t.append(c[i]) if l[i]==2: t.append("".join(t)) #print(l, t) T.append("".join(t)) T.sort() #print(T) print(T[K-1])