結果

問題 No.2671 NUPC Decompressor
ユーザー はるお味はるお味
提出日時 2024-03-16 06:21:02
言語 C++23
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 721 bytes
コンパイル時間 3,016 ms
コンパイル使用メモリ 254,980 KB
実行使用メモリ 6,676 KB
最終ジャッジ日時 2024-03-16 06:21:08
合計ジャッジ時間 4,211 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
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 1 ms
6,676 KB
testcase_12 AC 1 ms
6,676 KB
testcase_13 AC 2 ms
6,676 KB
testcase_14 AC 2 ms
6,676 KB
testcase_15 AC 2 ms
6,676 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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