結果
| 問題 |
No.2671 NUPC Decompressor
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-03-15 21:23:17 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 580 bytes |
| コンパイル時間 | 3,158 ms |
| コンパイル使用メモリ | 264,152 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-09-30 00:19:28 |
| 合計ジャッジ時間 | 3,777 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 13 |
ソースコード
// #pragma GCC optimize("O3,unroll-loops")
#include <bits/stdc++.h>
// #include <x86intrin.h>
using namespace std;
#if __cplusplus >= 202002L
using namespace numbers;
#endif
int main(){
cin.tie(0)->sync_with_stdio(0);
cin.exceptions(ios::badbit | ios::failbit);
vector<string> a;
for(auto mask = 0; mask < 1 << 4; ++ mask){
string s;
for(auto i = 0; i < 8; ++ i){
if(~i & 1){
s += "NUPC"[i >> 1];
}
else if(mask >> (i >> 1) & 1){
s += s;
}
}
a.push_back(s);
}
ranges::sort(a);
int k;
cin >> k;
cout << a[k - 1] << "\n";
return 0;
}
/*
*/