結果
| 問題 |
No.2614 Delete ABC
|
| コンテスト | |
| ユーザー |
nono00
|
| 提出日時 | 2024-01-26 21:23:14 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 423 bytes |
| コンパイル時間 | 3,076 ms |
| コンパイル使用メモリ | 245,864 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-09-28 07:35:27 |
| 合計ジャッジ時間 | 2,934 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 2 |
ソースコード
#include <bits/stdc++.h>
void solve() {
const std::string s = "ABACBC";
const std::string t = "ABC";
int n;
std::cin >> n;
std::string ans;
ans += s;
for (int i = 0; i + 2 < n; i++) ans += t;
std::cout << ans << '\n';
}
int main() {
std::cin.tie(0)->sync_with_stdio(0);
std::cout << std::fixed << std::setprecision(16);
int t = 1;
std::cin >> t;
while (t--) solve();
}
nono00