結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 118 ms
55,428 KB
testcase_01 AC 118 ms
55,644 KB
testcase_02 AC 117 ms
55,752 KB
testcase_03 AC 128 ms
55,736 KB
testcase_04 AC 182 ms
56,720 KB
testcase_05 AC 297 ms
58,940 KB
testcase_06 AC 607 ms
66,264 KB
testcase_07 AC 956 ms
68,808 KB
testcase_08 AC 711 ms
64,876 KB
testcase_09 AC 784 ms
68,360 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
class A{
	public static void main(String[]$){
		String v=new 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