結果

問題 No.436 ccw
ユーザー shinwisteriashinwisteria
提出日時 2017-03-30 17:36:30
言語 Java19
(openjdk 21)
結果
AC  
実行時間 203 ms / 2,000 ms
コード長 311 bytes
コンパイル時間 3,285 ms
コンパイル使用メモリ 72,988 KB
実行使用メモリ 56,892 KB
最終ジャッジ日時 2023-09-21 08:43:49
合計ジャッジ時間 7,849 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 116 ms
53,688 KB
testcase_01 AC 116 ms
55,688 KB
testcase_02 AC 117 ms
55,632 KB
testcase_03 AC 117 ms
56,120 KB
testcase_04 AC 118 ms
55,696 KB
testcase_05 AC 118 ms
56,088 KB
testcase_06 AC 116 ms
55,908 KB
testcase_07 AC 117 ms
56,132 KB
testcase_08 AC 117 ms
55,624 KB
testcase_09 AC 118 ms
56,296 KB
testcase_10 AC 116 ms
55,648 KB
testcase_11 AC 117 ms
56,080 KB
testcase_12 AC 118 ms
55,896 KB
testcase_13 AC 117 ms
55,740 KB
testcase_14 AC 117 ms
55,808 KB
testcase_15 AC 121 ms
55,640 KB
testcase_16 AC 131 ms
55,772 KB
testcase_17 AC 124 ms
56,052 KB
testcase_18 AC 130 ms
56,436 KB
testcase_19 AC 131 ms
56,312 KB
testcase_20 AC 132 ms
55,844 KB
testcase_21 AC 203 ms
56,704 KB
testcase_22 AC 197 ms
56,884 KB
testcase_23 AC 198 ms
56,312 KB
testcase_24 AC 200 ms
56,892 KB
testcase_25 AC 194 ms
56,660 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Ccw {

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		String str = s.next();
		s.close();
		int left = 0,right = 0;
		left = str.indexOf("ccw");
		right = str.length()-1-(left +1);
		System.out.println(Integer.min(left+1,right));

	}

}
0