結果

問題 No.667 Mice's Luck(ネズミ達の運)
ユーザー fal_rndfal_rnd
提出日時 2018-04-07 01:31:23
言語 Java21
(openjdk 21)
結果
AC  
実行時間 878 ms / 2,000 ms
コード長 247 bytes
コンパイル時間 1,926 ms
コンパイル使用メモリ 71,540 KB
実行使用メモリ 68,828 KB
最終ジャッジ日時 2023-09-08 18:09:44
合計ジャッジ時間 8,036 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 119 ms
56,084 KB
testcase_01 AC 120 ms
55,784 KB
testcase_02 AC 119 ms
56,100 KB
testcase_03 AC 130 ms
56,440 KB
testcase_04 AC 187 ms
56,516 KB
testcase_05 AC 304 ms
59,316 KB
testcase_06 AC 597 ms
64,380 KB
testcase_07 AC 878 ms
68,828 KB
testcase_08 AC 706 ms
64,424 KB
testcase_09 AC 785 ms
67,940 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

class A{
	public static void main(String[]$){
		String v=new java.util.Scanner(System.in).next();
		int l=v.length(),ok=v.replaceAll("x","").length();
		for(char c:v.toCharArray()) {
			System.out.println(100.0*ok/l--);
			if(c=='o')--ok;
		}
	}
}
0