結果
問題 | No.1609 String Division Machine |
ユーザー | 👑 SPD_9X2 |
提出日時 | 2021-05-16 16:18:33 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 324 bytes |
コンパイル時間 | 289 ms |
コンパイル使用メモリ | 87,072 KB |
実行使用メモリ | 82,532 KB |
最終ジャッジ日時 | 2023-09-20 12:34:35 |
合計ジャッジ時間 | 5,164 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | AC | 73 ms
71,184 KB |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | AC | 73 ms
71,428 KB |
testcase_06 | AC | 74 ms
71,284 KB |
testcase_07 | AC | 72 ms
71,388 KB |
testcase_08 | WA | - |
testcase_09 | AC | 73 ms
71,416 KB |
testcase_10 | AC | 72 ms
71,432 KB |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | AC | 73 ms
71,228 KB |
testcase_17 | WA | - |
testcase_18 | WA | - |
testcase_19 | WA | - |
testcase_20 | WA | - |
testcase_21 | WA | - |
testcase_22 | AC | 75 ms
71,368 KB |
testcase_23 | AC | 74 ms
71,456 KB |
testcase_24 | AC | 75 ms
71,360 KB |
testcase_25 | WA | - |
testcase_26 | AC | 74 ms
71,112 KB |
testcase_27 | WA | - |
testcase_28 | AC | 74 ms
71,216 KB |
testcase_29 | AC | 76 ms
71,120 KB |
testcase_30 | WA | - |
testcase_31 | WA | - |
testcase_32 | WA | - |
testcase_33 | WA | - |
testcase_34 | AC | 88 ms
82,348 KB |
testcase_35 | AC | 88 ms
82,460 KB |
testcase_36 | WA | - |
testcase_37 | AC | 88 ms
82,460 KB |
testcase_38 | AC | 77 ms
75,848 KB |
testcase_39 | WA | - |
testcase_40 | AC | 88 ms
82,048 KB |
testcase_41 | WA | - |
ソースコード
""" 先頭だけ続く文字に置き換え、それ以外は 全部aに置き換える誤解法 """ S = input() ANS = [] wait = 0 for i in S: if i == "?" and len(ANS) > 0: ANS.append("a") elif i == "?": wait += 1 else: ANS.append(i*(wait+1)) wait = 0 print ("".join(ANS))