結果

問題 No.436 ccw
ユーザー fal_rndfal_rnd
提出日時 2016-10-28 23:00:50
言語 Java21
(openjdk 21)
結果
RE  
実行時間 -
コード長 225 bytes
コンパイル時間 2,236 ms
コンパイル使用メモリ 74,116 KB
実行使用メモリ 42,524 KB
最終ジャッジ日時 2024-05-03 08:01:06
合計ジャッジ時間 5,915 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 114 ms
39,884 KB
testcase_01 AC 131 ms
40,916 KB
testcase_02 AC 100 ms
41,204 KB
testcase_03 AC 100 ms
40,952 KB
testcase_04 AC 100 ms
41,448 KB
testcase_05 AC 100 ms
41,240 KB
testcase_06 AC 99 ms
41,236 KB
testcase_07 AC 114 ms
41,232 KB
testcase_08 AC 121 ms
41,140 KB
testcase_09 RE -
testcase_10 RE -
testcase_11 AC 104 ms
41,340 KB
testcase_12 AC 99 ms
40,148 KB
testcase_13 AC 111 ms
41,328 KB
testcase_14 RE -
testcase_15 AC 120 ms
41,324 KB
testcase_16 AC 115 ms
41,072 KB
testcase_17 AC 117 ms
40,792 KB
testcase_18 AC 119 ms
41,248 KB
testcase_19 AC 108 ms
41,544 KB
testcase_20 AC 131 ms
41,232 KB
testcase_21 AC 184 ms
42,524 KB
testcase_22 AC 175 ms
41,780 KB
testcase_23 AC 179 ms
41,784 KB
testcase_24 AC 174 ms
42,196 KB
testcase_25 AC 176 ms
42,132 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())+1);
	}
}
0