結果
| 問題 | No.436 ccw |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-11-02 07:12:42 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 48 ms / 2,000 ms |
| コード長 | 145 bytes |
| 記録 | |
| コンパイル時間 | 356 ms |
| コンパイル使用メモリ | 84,864 KB |
| 実行使用メモリ | 52,480 KB |
| 最終ジャッジ日時 | 2026-05-19 07:43:54 |
| 合計ジャッジ時間 | 2,234 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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()