結果
| 問題 | No.2671 NUPC Decompressor |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-03-15 21:23:17 |
| 言語 | C++23 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 580 bytes |
| 記録 | |
| コンパイル時間 | 2,700 ms |
| コンパイル使用メモリ | 361,844 KB |
| 実行使用メモリ | 7,972 KB |
| 最終ジャッジ日時 | 2026-04-16 06:27:13 |
| 合計ジャッジ時間 | 3,513 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
}
/*
*/