結果
問題 | No.342 一番ワロタww |
ユーザー |
|
提出日時 | 2023-06-13 16:03:30 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 31 ms / 5,000 ms |
コード長 | 336 bytes |
コンパイル時間 | 247 ms |
コンパイル使用メモリ | 82,588 KB |
実行使用メモリ | 53,616 KB |
最終ジャッジ日時 | 2024-06-22 01:16:00 |
合計ジャッジ時間 | 1,667 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 14 |
ソースコード
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", ""))