結果
| 問題 | No.501 穴と文字列 |
| コンテスト | |
| ユーザー |
maspy
|
| 提出日時 | 2020-01-28 12:54:47 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 255 bytes |
| 記録 | |
| コンパイル時間 | 330 ms |
| コンパイル使用メモリ | 20,568 KB |
| 実行使用メモリ | 15,360 KB |
| 最終ジャッジ日時 | 2026-04-04 19:53:32 |
| 合計ジャッジ時間 | 3,191 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 WA * 10 |
ソースコード
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
N,D = map(int,read().split())
if D <= N:
answer = 'A' * (N-D) + 'C' * D
else:
answer = 'A' * (N+N-D) + 'B' * (D-N)
print(answer)
maspy