結果
問題 | No.501 穴と文字列 |
ユーザー |
|
提出日時 | 2020-04-15 22:55:35 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 384 bytes |
コンパイル時間 | 1,599 ms |
コンパイル使用メモリ | 165,824 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-01 19:06:18 |
合計ジャッジ時間 | 2,313 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 22 |
ソースコード
#include <bits/stdc++.h>using namespace std;#define rep(i, n) for (int i = 0; i < (int)(n); i++)#define llong long longint main() {int n, d;cin >> n >> d;if(n >= d) {rep(i, d) cout << 'A';rep(i, n-d) cout << 'C';cout << "\n";} else {rep(i, 2*n-d) cout << 'A';rep(i, d-n) cout << 'B';cout << "\n";}}