結果

問題 No.1469 programing
ユーザー harurunharurun
提出日時 2021-04-03 11:38:33
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 229 ms / 3,000 ms
コード長 229 bytes
コンパイル時間 1,454 ms
コンパイル使用メモリ 86,760 KB
実行使用メモリ 87,700 KB
最終ジャッジ日時 2023-08-26 04:18:04
合計ジャッジ時間 4,280 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,244 KB
testcase_01 AC 68 ms
71,272 KB
testcase_02 AC 68 ms
71,200 KB
testcase_03 AC 70 ms
71,144 KB
testcase_04 AC 69 ms
70,992 KB
testcase_05 AC 77 ms
76,280 KB
testcase_06 AC 75 ms
76,044 KB
testcase_07 AC 75 ms
76,132 KB
testcase_08 AC 81 ms
76,240 KB
testcase_09 AC 83 ms
76,892 KB
testcase_10 AC 84 ms
76,944 KB
testcase_11 AC 85 ms
77,184 KB
testcase_12 AC 83 ms
77,360 KB
testcase_13 AC 69 ms
71,212 KB
testcase_14 AC 87 ms
77,888 KB
testcase_15 AC 85 ms
77,064 KB
testcase_16 AC 93 ms
77,536 KB
testcase_17 AC 229 ms
87,700 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#PyPy用
from sys import stdout
wt=stdout.write
def main():
  S=input()
  if len(S)<2:
    print(S)
    return
  wt(S[0])
  a=S[0]
  for i in range(1,len(S)):
    if S[i]!=a:
      wt(S[i])
    a=S[i]
  wt("\n")
  return

main()
0