結果
問題 | No.667 Mice's Luck(ネズミ達の運) |
ユーザー | pirorirori_n712 |
提出日時 | 2018-08-07 01:19:13 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 590 ms / 2,000 ms |
コード長 | 353 bytes |
コンパイル時間 | 902 ms |
コンパイル使用メモリ | 110,040 KB |
実行使用メモリ | 30,012 KB |
最終ジャッジ日時 | 2023-10-19 22:21:26 |
合計ジャッジ時間 | 4,907 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 29 ms
25,952 KB |
testcase_01 | AC | 26 ms
25,124 KB |
testcase_02 | AC | 28 ms
25,952 KB |
testcase_03 | AC | 28 ms
25,956 KB |
testcase_04 | AC | 34 ms
25,956 KB |
testcase_05 | AC | 84 ms
25,916 KB |
testcase_06 | AC | 308 ms
27,964 KB |
testcase_07 | AC | 590 ms
30,012 KB |
testcase_08 | AC | 448 ms
30,012 KB |
testcase_09 | AC | 352 ms
29,216 KB |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; using System.Linq; class No667{ static void Main(){ var a=Console.ReadLine().ToCharArray(); var b=(double)a.Count(x=>x=='o'); for(double i=0;i<(double)a.Length;i++){ Console.WriteLine(((b/((double)a.Length-i))*100).ToString("0.00000000000000")); if(a[(int)i]=='o')b--; } } }