結果
問題 |
No.345 最小チワワ問題
|
ユーザー |
|
提出日時 | 2022-04-04 14:26:53 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 177 bytes |
コンパイル時間 | 288 ms |
コンパイル使用メモリ | 82,160 KB |
実行使用メモリ | 53,924 KB |
最終ジャッジ日時 | 2024-11-25 05:49:40 |
合計ジャッジ時間 | 2,550 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 7 WA * 22 |
ソースコード
S = input() c_idx = S.find("c") w_1_idx = S.find("w", c_idx) w_2_idx = S.find("w", w_1_idx+1) if not c_idx == -1 or w_1_idx == -1 or w_2_idx == -1: print(w_2_idx-c_idx+1)