結果

問題 No.436 ccw
ユーザー fal_rndfal_rnd
提出日時 2016-10-28 23:10:03
言語 Java21
(openjdk 21)
結果
AC  
実行時間 206 ms / 2,000 ms
コード長 232 bytes
コンパイル時間 1,839 ms
コンパイル使用メモリ 73,624 KB
実行使用メモリ 58,864 KB
最終ジャッジ日時 2023-08-15 21:34:01
合計ジャッジ時間 6,815 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 130 ms
56,572 KB
testcase_01 AC 123 ms
56,768 KB
testcase_02 AC 124 ms
56,484 KB
testcase_03 AC 126 ms
56,560 KB
testcase_04 AC 127 ms
56,512 KB
testcase_05 AC 145 ms
56,948 KB
testcase_06 AC 126 ms
56,440 KB
testcase_07 AC 128 ms
57,120 KB
testcase_08 AC 127 ms
57,184 KB
testcase_09 AC 122 ms
56,628 KB
testcase_10 AC 124 ms
56,924 KB
testcase_11 AC 126 ms
56,740 KB
testcase_12 AC 124 ms
56,552 KB
testcase_13 AC 126 ms
58,864 KB
testcase_14 AC 126 ms
57,176 KB
testcase_15 AC 125 ms
56,888 KB
testcase_16 AC 139 ms
56,940 KB
testcase_17 AC 130 ms
56,468 KB
testcase_18 AC 141 ms
56,944 KB
testcase_19 AC 139 ms
56,864 KB
testcase_20 AC 135 ms
56,796 KB
testcase_21 AC 201 ms
58,800 KB
testcase_22 AC 202 ms
57,556 KB
testcase_23 AC 198 ms
57,404 KB
testcase_24 AC 206 ms
58,860 KB
testcase_25 AC 203 ms
58,188 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
class A{
	static Scanner s = new Scanner(System.in);
	public static void main(String[] args) {
		String[] in = ("#"+s.next()+"#").split("ccw");
		System.out.println(Math.min(in[0].length(), in[1].length()));
	}
}
0