結果

問題 No.1469 programing
ユーザー TomoyarnTomoyarn
提出日時 2022-01-14 06:30:47
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 253 ms / 3,000 ms
コード長 187 bytes
コンパイル時間 155 ms
コンパイル使用メモリ 82,632 KB
実行使用メモリ 92,144 KB
最終ジャッジ日時 2024-04-29 11:39:30
合計ジャッジ時間 2,597 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
51,968 KB
testcase_01 AC 38 ms
51,968 KB
testcase_02 AC 38 ms
51,840 KB
testcase_03 AC 38 ms
52,352 KB
testcase_04 AC 42 ms
53,120 KB
testcase_05 AC 50 ms
62,208 KB
testcase_06 AC 44 ms
58,752 KB
testcase_07 AC 51 ms
62,336 KB
testcase_08 AC 63 ms
77,056 KB
testcase_09 AC 65 ms
77,184 KB
testcase_10 AC 64 ms
77,056 KB
testcase_11 AC 73 ms
78,656 KB
testcase_12 AC 67 ms
77,788 KB
testcase_13 AC 37 ms
52,352 KB
testcase_14 AC 78 ms
79,060 KB
testcase_15 AC 66 ms
77,640 KB
testcase_16 AC 75 ms
78,368 KB
testcase_17 AC 253 ms
92,144 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

S = input() + "#"
l = len(S)

ans = ""
i = 0
while i < l - 1:
    #ans += S[i]
    print(S[i], end = "")
    if S[i] == S[i + 1]:
        i += 2
    else:
        i += 1
    

#print(ans)
0