結果

問題 No.2671 NUPC Decompressor
ユーザー AerenAeren
提出日時 2024-03-15 21:23:17
言語 C++23
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 580 bytes
コンパイル時間 3,346 ms
コンパイル使用メモリ 264,080 KB
実行使用メモリ 6,676 KB
最終ジャッジ日時 2024-03-15 21:23:21
合計ジャッジ時間 4,109 ms
ジャッジサーバーID
(参考情報)
judge14 / judge10
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
6,676 KB
testcase_01 AC 2 ms
6,676 KB
testcase_02 AC 2 ms
6,676 KB
testcase_03 AC 2 ms
6,676 KB
testcase_04 AC 2 ms
6,676 KB
testcase_05 AC 2 ms
6,676 KB
testcase_06 AC 2 ms
6,676 KB
testcase_07 AC 2 ms
6,676 KB
testcase_08 AC 2 ms
6,676 KB
testcase_09 AC 2 ms
6,676 KB
testcase_10 AC 2 ms
6,676 KB
testcase_11 AC 2 ms
6,676 KB
testcase_12 AC 2 ms
6,676 KB
testcase_13 AC 2 ms
6,676 KB
testcase_14 AC 1 ms
6,676 KB
testcase_15 AC 2 ms
6,676 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

// #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;
}

/*

*/
0