結果
問題 | No.501 穴と文字列 |
ユーザー |
|
提出日時 | 2020-08-20 22:09:14 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 30 ms / 2,000 ms |
コード長 | 212 bytes |
コンパイル時間 | 218 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-10-13 18:06:17 |
合計ジャッジ時間 | 1,563 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 22 |
ソースコード
N,D = map(int,input().split())s = ""if N == D:s = "A"*Nelif N > D:s = "A"*Ds += "C"*(N-D)else:if D-N == 1:s = "A"*(N-1)s += "B"else:s = "A"*(2*N-D)s += "B"*(D-N)print(s)