結果
| 問題 |
No.2671 NUPC Decompressor
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-03-15 21:24:03 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 642 bytes |
| コンパイル時間 | 5,339 ms |
| コンパイル使用メモリ | 318,800 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-09-30 00:20:11 |
| 合計ジャッジ時間 | 5,657 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 13 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
#include<atcoder/all>
using namespace atcoder;
#define rep(i,n) for (int i = 0; i < (n); ++i)
using ld = long double;
using ll = long long;
template<class T> bool chmax(T &a, T b)
{
if(a<b)
{
a = b;
return true;
}
return false;
}
template<class T> bool chmin(T &a, T b)
{
if(a>b)
{
a = b;
return true;
}
return false;
}
using mint = modint998244353;
int main()
{
int K;
cin >> K;
string S = "NUPC";
vector<string> v;
rep(b,1<<4)
{
string T;
rep(i,4)
{
T += S[i];
if(b>>i&1) T = T+T;
}
v.push_back(T);
}
sort(v.begin(), v.end());
cout << v[K-1] << endl;
}