結果
| 問題 |
No.2671 NUPC Decompressor
|
| コンテスト | |
| ユーザー |
はるお味
|
| 提出日時 | 2024-03-16 06:21:02 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 721 bytes |
| コンパイル時間 | 2,672 ms |
| コンパイル使用メモリ | 254,652 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-09-30 03:52:05 |
| 合計ジャッジ時間 | 3,244 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 13 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
typedef vector<int> VI;
typedef vector<VI> VVI;
typedef vector<long long> VL;
typedef vector<VL> VVL;
typedef long long LL;
#define all(a) (a).begin(), (a).end()
#define Yes(n) cout << ((n) ? "Yes" : "No" ) << endl
#define ALL(a) (a).begin(),(a).end()
#include <atcoder/modint>
using mint = atcoder::modint998244353;
int main() {
string s="NUPC";
set<string> S;
rep(ii,16){
string t;
int i=ii;
rep(j,4){
t+=s[j];
if(i%2==1){t=t+t;}
i/=2;
}
S.insert(t);
//cout<<t<<endl;
}
int cou;cin>>cou;
for(auto it : S){
cou--;
if(cou==0){cout<<it<<endl;break;}
}
}
はるお味