結果
問題 | No.2671 NUPC Decompressor |
ユーザー |
![]() |
提出日時 | 2024-03-15 21:25:40 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 41 ms / 2,000 ms |
コード長 | 263 bytes |
コンパイル時間 | 561 ms |
コンパイル使用メモリ | 82,304 KB |
実行使用メモリ | 52,608 KB |
最終ジャッジ日時 | 2024-09-30 00:21:38 |
合計ジャッジ時間 | 1,556 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 13 |
ソースコード
K=int(input())L=[]from itertools import productS='NUPC'for A in product(range(2),repeat=4):ans=''for i in range(8):if i%2==0:ans+=S[i//2]else:pos=i//2if A[pos]==1:ans=ans+ansL.append(ans)L.sort()print(L[K-1])