結果
| 問題 | No.2671 NUPC Decompressor |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-03-15 21:26:33 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 455 bytes |
| 記録 | |
| コンパイル時間 | 1,501 ms |
| コンパイル使用メモリ | 220,376 KB |
| 実行使用メモリ | 6,528 KB |
| 最終ジャッジ日時 | 2026-07-04 01:55:55 |
| 合計ジャッジ時間 | 2,395 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
}