結果

問題 No.1469 programing
ユーザー otsunekootsuneko
提出日時 2021-05-03 21:26:04
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 253 bytes
コンパイル時間 535 ms
コンパイル使用メモリ 87,280 KB
実行使用メモリ 282,908 KB
最終ジャッジ日時 2023-09-29 17:49:13
合計ジャッジ時間 14,070 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
75,808 KB
testcase_01 AC 71 ms
71,512 KB
testcase_02 AC 71 ms
71,284 KB
testcase_03 AC 71 ms
71,620 KB
testcase_04 AC 71 ms
71,336 KB
testcase_05 AC 75 ms
75,976 KB
testcase_06 WA -
testcase_07 AC 77 ms
76,040 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 439 ms
94,480 KB
testcase_11 TLE -
testcase_12 AC 1,767 ms
260,732 KB
testcase_13 WA -
testcase_14 TLE -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

S = input()
ans = ""

for i in range(len(S)):
    if i == len(S)-1:
        if S[i] == S[i-1]:
            continue
        else:
            ans += S[i]
    elif S[i+1] == S[i]:
        continue
    else:
        ans += S[i]

print(ans)
0