結果

問題 No.1469 programing
ユーザー otsunekootsuneko
提出日時 2021-05-03 21:31:07
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 386 ms / 3,000 ms
コード長 158 bytes
コンパイル時間 255 ms
コンパイル使用メモリ 87,288 KB
実行使用メモリ 293,648 KB
最終ジャッジ日時 2023-09-29 17:54:19
合計ジャッジ時間 3,120 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
71,392 KB
testcase_01 AC 65 ms
71,008 KB
testcase_02 AC 66 ms
71,124 KB
testcase_03 AC 71 ms
71,504 KB
testcase_04 AC 69 ms
71,472 KB
testcase_05 AC 69 ms
75,888 KB
testcase_06 AC 70 ms
75,792 KB
testcase_07 AC 69 ms
75,888 KB
testcase_08 AC 76 ms
80,164 KB
testcase_09 AC 79 ms
82,492 KB
testcase_10 AC 80 ms
81,352 KB
testcase_11 AC 99 ms
96,836 KB
testcase_12 AC 85 ms
87,588 KB
testcase_13 AC 67 ms
71,204 KB
testcase_14 AC 107 ms
96,948 KB
testcase_15 AC 91 ms
88,896 KB
testcase_16 AC 103 ms
92,420 KB
testcase_17 AC 386 ms
293,648 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

S = input()

ans = [S[0]]
for i in range(1,len(S)):
    if S[i] == S[i-1]:
        continue
    else:
        ans.append(S[i])

print("".join(ans))
0