結果
| 問題 | No.2671 NUPC Decompressor |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-04-18 17:25:40 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 39 ms / 2,000 ms |
| コード長 | 432 bytes |
| 記録 | |
| コンパイル時間 | 205 ms |
| コンパイル使用メモリ | 85,376 KB |
| 実行使用メモリ | 52,224 KB |
| 最終ジャッジ日時 | 2026-04-26 12:22:25 |
| 合計ジャッジ時間 | 2,281 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 13 |
ソースコード
from itertools import product
def main():
K = int(input())
odd = "NUPC"
compression = []
for even in product((1, 2), repeat=4):
sentence = ""
for letter, i in zip(odd, even):
sentence += letter
if i == 2:
sentence += sentence
compression.append(sentence)
compression.sort()
print(compression[K - 1])
if __name__ == "__main__":
main()