結果

問題 No.436 ccw
ユーザー abL8ZLsTbFabL8ZLsTbF
提出日時 2016-10-28 22:24:46
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 65 ms / 2,000 ms
コード長 206 bytes
コンパイル時間 1,926 ms
コンパイル使用メモリ 96,604 KB
実行使用メモリ 23,408 KB
最終ジャッジ日時 2023-08-15 20:58:47
合計ジャッジ時間 4,851 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 65 ms
23,304 KB
testcase_01 AC 62 ms
21,216 KB
testcase_02 AC 62 ms
21,196 KB
testcase_03 AC 60 ms
23,172 KB
testcase_04 AC 62 ms
19,212 KB
testcase_05 AC 62 ms
21,300 KB
testcase_06 AC 60 ms
21,160 KB
testcase_07 AC 60 ms
19,004 KB
testcase_08 AC 60 ms
21,252 KB
testcase_09 AC 59 ms
21,172 KB
testcase_10 AC 59 ms
21,160 KB
testcase_11 AC 60 ms
21,200 KB
testcase_12 AC 60 ms
20,992 KB
testcase_13 AC 60 ms
23,256 KB
testcase_14 AC 60 ms
21,200 KB
testcase_15 AC 64 ms
23,200 KB
testcase_16 AC 65 ms
23,408 KB
testcase_17 AC 63 ms
21,252 KB
testcase_18 AC 61 ms
21,312 KB
testcase_19 AC 60 ms
21,244 KB
testcase_20 AC 60 ms
21,224 KB
testcase_21 AC 61 ms
21,252 KB
testcase_22 AC 62 ms
23,160 KB
testcase_23 AC 62 ms
23,244 KB
testcase_24 AC 61 ms
21,248 KB
testcase_25 AC 63 ms
23,100 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

public class Program
{
	public static void Main()
	{
		var S = Console.ReadLine();
		int C = S.IndexOf("w");
		int W = S.Length - C;
		Console.WriteLine(Math.Max(Math.Min(C - 1, W), 0));
	}
}
0