結果

問題 No.1469 programing
ユーザー harurunharurun
提出日時 2021-04-03 17:20:41
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 730 ms / 3,000 ms
コード長 129 bytes
コンパイル時間 197 ms
コンパイル使用メモリ 10,448 KB
実行使用メモリ 17,684 KB
最終ジャッジ日時 2023-08-26 09:03:46
合計ジャッジ時間 2,403 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 13 ms
7,804 KB
testcase_01 AC 13 ms
7,936 KB
testcase_02 AC 14 ms
7,940 KB
testcase_03 AC 14 ms
7,812 KB
testcase_04 AC 13 ms
7,792 KB
testcase_05 AC 14 ms
7,816 KB
testcase_06 AC 13 ms
7,788 KB
testcase_07 AC 13 ms
7,776 KB
testcase_08 AC 30 ms
8,112 KB
testcase_09 AC 40 ms
8,160 KB
testcase_10 AC 36 ms
8,116 KB
testcase_11 AC 55 ms
8,496 KB
testcase_12 AC 45 ms
8,380 KB
testcase_13 AC 13 ms
7,812 KB
testcase_14 AC 71 ms
8,752 KB
testcase_15 AC 60 ms
8,624 KB
testcase_16 AC 89 ms
8,980 KB
testcase_17 AC 730 ms
17,684 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
  S=input()
  ans=S[0]
  for i in range(1,len(S)):
    if S[i-1]!=S[i]:
      ans+=S[i]
  print(ans)
  return

main()
0