結果
問題 | No.501 穴と文字列 |
ユーザー |
|
提出日時 | 2017-04-09 15:54:58 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 12 ms / 2,000 ms |
コード長 | 111 bytes |
コンパイル時間 | 233 ms |
コンパイル使用メモリ | 6,912 KB |
実行使用メモリ | 6,400 KB |
最終ジャッジ日時 | 2024-12-14 16:31:19 |
合計ジャッジ時間 | 1,228 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 22 |
ソースコード
#yuki_501 n,d=map(int,raw_input().split()) if n>=d: print 'A'*d+'C'*(n-d) else: print 'A'*(n*2-d)+'B'*(d-n)