結果
問題 | No.667 Mice's Luck(ネズミ達の運) |
ユーザー | mencotton |
提出日時 | 2018-03-26 20:14:58 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 726 ms / 2,000 ms |
コード長 | 487 bytes |
コンパイル時間 | 2,025 ms |
コンパイル使用メモリ | 102,016 KB |
実行使用メモリ | 28,496 KB |
最終ジャッジ日時 | 2023-09-07 12:50:28 |
合計ジャッジ時間 | 6,422 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 59 ms
22,292 KB |
testcase_01 | AC | 56 ms
20,508 KB |
testcase_02 | AC | 58 ms
22,348 KB |
testcase_03 | AC | 59 ms
22,384 KB |
testcase_04 | AC | 66 ms
22,444 KB |
testcase_05 | AC | 126 ms
22,196 KB |
testcase_06 | AC | 398 ms
24,372 KB |
testcase_07 | AC | 726 ms
28,496 KB |
testcase_08 | AC | 560 ms
24,312 KB |
testcase_09 | AC | 457 ms
22,412 KB |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; namespace _667 { class Program { static void Main(string[] args) { string s = Console.ReadLine(); int ok = 0; int n = s.Length; for (int i = 0; i < n; i++) if (s[i] == 'o') ok++; for (int i = 0; i < n; i++) { double ret = ok; ret /= n - i; Console.WriteLine(ret * 100); if (s[i] == 'o') ok--; } } } }