結果
| 問題 |
No.2671 NUPC Decompressor
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-04-18 17:25:40 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 42 ms / 2,000 ms |
| コード長 | 432 bytes |
| コンパイル時間 | 340 ms |
| コンパイル使用メモリ | 82,252 KB |
| 実行使用メモリ | 53,948 KB |
| 最終ジャッジ日時 | 2024-10-10 10:44:21 |
| 合計ジャッジ時間 | 1,915 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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()