結果
| 問題 |
No.2671 NUPC Decompressor
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-03-15 21:26:33 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 455 bytes |
| コンパイル時間 | 2,317 ms |
| コンパイル使用メモリ | 203,444 KB |
| 最終ジャッジ日時 | 2025-02-20 04:37:18 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 13 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
int K;
string S[16];
int main(){
cin.tie(nullptr)->sync_with_stdio(false);
for(int bit=0;bit<1<<4;++bit){
string T="N1U1P1C1";
for(int i=0;i<4;++i){
if(bit&(1<<i))T[2*i+1]='2';
}
string res;
for(int i=0;i<8;++i){
if(i%2==0)res+=T[i];
if(i%2==1){
if(T[i]=='2')res=res+res;
}
}
S[bit]=res;
}
sort(S,S+16);
cin>>K;
--K;
cout<<S[K]<<endl;
}