結果
| 問題 | No.342 一番ワロタww |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-06-13 16:03:30 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 65 ms / 5,000 ms |
| + 259µs | |
| コード長 | 336 bytes |
| 記録 | |
| コンパイル時間 | 456 ms |
| コンパイル使用メモリ | 96,108 KB |
| 実行使用メモリ | 78,848 KB |
| 最終ジャッジ日時 | 2026-07-26 15:50:12 |
| 合計ジャッジ時間 | 2,804 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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", ""))