結果

問題 No.436 ccw
ユーザー Natsume-MNatsume-M
提出日時 2016-12-09 18:39:42
言語 Java19
(openjdk 21)
結果
AC  
実行時間 168 ms / 2,000 ms
コード長 236 bytes
コンパイル時間 1,729 ms
コンパイル使用メモリ 71,304 KB
実行使用メモリ 56,440 KB
最終ジャッジ日時 2023-08-19 05:48:40
合計ジャッジ時間 6,171 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 101 ms
55,872 KB
testcase_01 AC 114 ms
55,672 KB
testcase_02 AC 111 ms
56,000 KB
testcase_03 AC 117 ms
55,684 KB
testcase_04 AC 103 ms
55,512 KB
testcase_05 AC 102 ms
55,760 KB
testcase_06 AC 105 ms
55,436 KB
testcase_07 AC 102 ms
55,888 KB
testcase_08 AC 101 ms
55,640 KB
testcase_09 AC 106 ms
55,788 KB
testcase_10 AC 104 ms
56,092 KB
testcase_11 AC 103 ms
55,864 KB
testcase_12 AC 103 ms
53,900 KB
testcase_13 AC 109 ms
55,476 KB
testcase_14 AC 103 ms
55,752 KB
testcase_15 AC 109 ms
55,748 KB
testcase_16 AC 112 ms
55,792 KB
testcase_17 AC 110 ms
55,524 KB
testcase_18 AC 114 ms
55,824 KB
testcase_19 AC 118 ms
56,360 KB
testcase_20 AC 113 ms
55,844 KB
testcase_21 AC 151 ms
56,300 KB
testcase_22 AC 164 ms
56,440 KB
testcase_23 AC 167 ms
56,192 KB
testcase_24 AC 168 ms
56,276 KB
testcase_25 AC 164 ms
56,180 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
class y436 {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		int c = s.indexOf('w'), w = s.length()-c;	c--;
		System.out.println(c<w?c:w);
		sc.close();
	}
}
0