結果
| 問題 | No.342 一番ワロタww |
| コンテスト | |
| ユーザー |
maspy
|
| 提出日時 | 2020-02-02 18:40:09 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 409 bytes |
| 記録 | |
| コンパイル時間 | 297 ms |
| コンパイル使用メモリ | 21,408 KB |
| 実行使用メモリ | 15,868 KB |
| 最終ジャッジ日時 | 2026-08-30 11:50:46 |
| 合計ジャッジ時間 | 3,378 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 11 WA * 3 |
ソースコード
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
S = read().decode().rstrip()
while S and S[0] == 'w':
S = S[1:]
max_w = 0
for n in range(1,101):
if S.find('w' * n) != -1:
max_w = n
S = S.replace('w'*max_w, '$ ').replace('w','% ')
answer = [x for x in S.split() if x[-1] == '$']
for x in answer:
print(x[:-1])
maspy