結果
| 問題 | No.2671 NUPC Decompressor |
| コンテスト | |
| ユーザー |
Tatsu_mr
|
| 提出日時 | 2024-03-15 21:24:37 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 442 bytes |
| 記録 | |
| コンパイル時間 | 1,659 ms |
| コンパイル使用メモリ | 223,260 KB |
| 実行使用メモリ | 6,528 KB |
| 最終ジャッジ日時 | 2026-07-04 01:55:01 |
| 合計ジャッジ時間 | 2,486 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 13 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
string t = "NUPC";
int main() {
vector<string> ans;
for (int bit = 0; bit < (1 << 4); bit++) {
string s = "";
for (int i = 0; i < 4; i++) {
s += t[i];
if (bit & (1 << i)) {
s = s + s;
}
}
ans.push_back(s);
}
sort(ans.begin(), ans.end());
int k;
cin >> k;
cout << ans[--k] << endl;
}
Tatsu_mr