結果
| 問題 |
No.342 一番ワロタww
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-07-01 10:48:21 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 32 ms / 5,000 ms |
| コード長 | 343 bytes |
| コンパイル時間 | 81 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 10,624 KB |
| 最終ジャッジ日時 | 2024-06-27 23:56:08 |
| 合計ジャッジ時間 | 1,267 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 14 |
ソースコード
S = input() + ' '
t = ''
L = []
cnt = M = 0
for s in S:
if s != 'w' and cnt == 0:
t += s
elif s == 'w':
cnt += 1
else:
if cnt > M and t:
M, L = cnt, []
if cnt > 0:
if cnt == M:
L += [t]
t, cnt = '', 0
t += s
for i in L:
print(i)