結果
| 問題 |
No.2671 NUPC Decompressor
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-03-15 21:38:18 |
| 言語 | C++17(gcc12) (gcc 12.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 2,000 ms |
| コード長 | 831 bytes |
| コンパイル時間 | 29,438 ms |
| コンパイル使用メモリ | 374,668 KB |
| 最終ジャッジ日時 | 2025-02-20 04:44:59 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 13 |
ソースコード
#pragma GCC target("avx2")
#pragma GCC optimize("O3")
#pragma GCC optimize("unroll-loops")
#include<bits/stdc++.h>
#include<atcoder/all>
using namespace std;
using namespace atcoder;
using ll=long long;
void IO(){
ios::sync_with_stdio(false);
std::cin.tie(nullptr);
}
int main(){
IO();
ll k;
cin>>k;
vector<string> s={
"N0U0P0C0","N0U0P0C1","N0U0P1C0","N0U0P1C1",
"N0U1P0C0","N0U1P0C1","N0U1P1C0","N0U1P1C1",
"N1U0P0C0","N1U0P0C1","N1U0P1C0","N1U0P1C1",
"N1U1P0C0","N1U1P0C1","N1U1P1C0","N1U1P1C1",
};
vector<string> ans;
for(ll i=0;i<16;i++){
string str;
for(ll j=0;j<8;j++){
if(j%2==0){
str+=s[i][j];
}else{
if(s[i][j]=='1'){
str=str+str;
}
}
}
ans.push_back(str);
}
sort(ans.begin(),ans.end());
cout<<ans[k-1]<<endl;
}