結果
| 問題 |
No.38 赤青白ブロック
|
| コンテスト | |
| ユーザー |
ゆるく
|
| 提出日時 | 2014-10-13 00:33:14 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 348 bytes |
| コンパイル時間 | 566 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-12-30 09:02:39 |
| 合計ジャッジ時間 | 2,374 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 14 WA * 13 |
ソースコード
r, b = map(int, input().split())
rgw = input()
d = list(rgw)
i = 0
while(1):
if i >= len(d):
break
if d[i] == 'R':
while(len(d)> i + r and d[i + r] == 'R'):
del(d[i + r])
if d[i] == 'B':
while(len(d)> i + b and d[i + b] == 'B'):
del(d[i + b])
i += 1
print(len(d))
ゆるく