結果
問題 |
No.345 最小チワワ問題
|
ユーザー |
|
提出日時 | 2020-09-08 22:22:20 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 209 bytes |
コンパイル時間 | 155 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-11-30 10:10:39 |
合計ジャッジ時間 | 2,210 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 9 WA * 14 RE * 6 |
ソースコード
s = input() l = list(s) del l[:l.index('c')] if l.count('c') >= 1 and l.count('w') >= 2 and l.index('c') < l.index('w'): l.remove('w') print(len(l[l.index('c'):l.index('w')]) + 2) else: print(-1)