結果
問題 |
No.501 穴と文字列
|
ユーザー |
![]() |
提出日時 | 2025-06-28 14:11:40 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 422 bytes |
コンパイル時間 | 2,724 ms |
コンパイル使用メモリ | 274,064 KB |
実行使用メモリ | 7,844 KB |
最終ジャッジ日時 | 2025-06-28 14:11:44 |
合計ジャッジ時間 | 3,732 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 22 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define int long long int n,d; signed main() { //freopen(".in","r",stdin); //freopen(".out","w",stdout); cin>>n>>d; n++; while(n--) { if(d!=0&&d/n<2) { cout<<'A'; d--; } else if(d!=0&&d/n==2) { cout<<'B'; d-=2; } else cout<<'C'; } return 0; }