結果

問題 No.342 一番ワロタww
ユーザー dangodango
提出日時 2023-06-13 16:03:30
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 75 ms / 5,000 ms
コード長 336 bytes
コンパイル時間 402 ms
コンパイル使用メモリ 87,328 KB
実行使用メモリ 71,592 KB
最終ジャッジ日時 2023-09-04 01:09:27
合計ジャッジ時間 2,967 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,420 KB
testcase_01 AC 69 ms
71,400 KB
testcase_02 AC 69 ms
71,592 KB
testcase_03 AC 68 ms
71,392 KB
testcase_04 AC 69 ms
71,424 KB
testcase_05 AC 68 ms
71,480 KB
testcase_06 AC 70 ms
71,400 KB
testcase_07 AC 69 ms
71,372 KB
testcase_08 AC 70 ms
71,568 KB
testcase_09 AC 67 ms
71,424 KB
testcase_10 AC 67 ms
71,196 KB
testcase_11 AC 69 ms
71,196 KB
testcase_12 AC 71 ms
71,540 KB
testcase_13 AC 71 ms
71,364 KB
testcase_14 AC 75 ms
71,420 KB
testcase_15 AC 71 ms
71,196 KB
testcase_16 AC 73 ms
71,532 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def r(string):
    while string.startswith('w'):
        string = string[1:]
    return string
S = r(input()) + ' '
B = ''
L = [' ']
C = M = 0
for i in S:
  if i=='w':
    C += 1
  else:
    if C > M and B:M, L = C, []
    if C:
      if C == M:
        L += [B]
      B, C = '', 0
  B += i
for i in L:
  print(i.replace("w", ""))
0