結果
問題 | No.2671 NUPC Decompressor |
ユーザー |
|
提出日時 | 2024-03-15 21:25:20 |
言語 | C++17(gcc12) (gcc 12.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 768 bytes |
コンパイル時間 | 15,784 ms |
コンパイル使用メモリ | 320,692 KB |
最終ジャッジ日時 | 2025-02-20 04:36:00 |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 13 |
ソースコード
#pragma GCC optimize("O3") #pragma GCC optimize("Ofast") #pragma GCC optimize("unroll-loops") #pragma GCC target("avx,avx2") #include <bits/stdc++.h> #define INF 1000000001LL #define LNF 1000000000000000001LL #define MOD 1000000007LL #define MAX 200000 #define long long long #define all(x) x.begin(),x.end() using namespace std; int main() { ios_base::sync_with_stdio(0); cin.tie(0); string s = "NUPC"; vector<string> res; for(int i = 0; i<16;i++) { string t; for(int j = 0; j<4; j++) { t.push_back(s[j]); if(i&(1<<j)) t = t+t; } res.push_back(t); } sort(all(res)); int n; cin >> n; cout << res[n-1] << endl; return 0; }