結果
| 問題 | No.345 最小チワワ問題 |
| コンテスト | |
| ユーザー |
todo_2mariko
|
| 提出日時 | 2019-03-07 21:57:14 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 221 bytes |
| 記録 | |
| コンパイル時間 | 602 ms |
| コンパイル使用メモリ | 20,824 KB |
| 実行使用メモリ | 15,612 KB |
| 最終ジャッジ日時 | 2026-03-08 10:51:28 |
| 合計ジャッジ時間 | 4,417 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 WA * 8 |
ソースコード
ans = -1
s = input().split('c')
s.pop(0)
if s:
for i in s:
j = list(i)
if j.count('w') >= 2:
del j[j.index('w')]
ans = [j.index('w')+3, ans][0 < ans < j.index('w')+3]
print(ans)
todo_2mariko