結果
| 問題 |
No.436 ccw
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-11-02 07:12:42 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 37 ms / 2,000 ms |
| コード長 | 145 bytes |
| コンパイル時間 | 244 ms |
| コンパイル使用メモリ | 82,464 KB |
| 実行使用メモリ | 53,620 KB |
| 最終ジャッジ日時 | 2024-11-25 01:23:55 |
| 合計ジャッジ時間 | 1,875 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 24 |
ソースコード
def solve():
s = input()
idx = s.index("cw")
idx2 = len(s) - idx - 1
print(min(idx, idx2))
if __name__=="__main__":
solve()