結果
問題 | No.667 Mice's Luck(ネズミ達の運) |
ユーザー | uma-pinehill |
提出日時 | 2018-05-23 09:51:12 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 424 ms / 2,000 ms |
コード長 | 839 bytes |
コンパイル時間 | 3,182 ms |
コンパイル使用メモリ | 107,772 KB |
実行使用メモリ | 29,440 KB |
最終ジャッジ日時 | 2023-09-11 01:35:28 |
合計ジャッジ時間 | 6,373 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 64 ms
21,256 KB |
testcase_01 | AC | 65 ms
21,100 KB |
testcase_02 | AC | 67 ms
23,160 KB |
testcase_03 | AC | 65 ms
21,288 KB |
testcase_04 | AC | 75 ms
21,428 KB |
testcase_05 | AC | 109 ms
23,520 KB |
testcase_06 | AC | 250 ms
23,524 KB |
testcase_07 | AC | 424 ms
26,080 KB |
testcase_08 | AC | 375 ms
29,440 KB |
testcase_09 | AC | 377 ms
28,508 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.Collections.Generic; using System.Linq; public class Program { static void Main() { string xx = Console.ReadLine(); int Len = xx.Length; int OCount = xx.Replace("x","").Length; for(var i = 0;i<Len;i++){ Console.WriteLine("{0:0.00000000000}",(decimal)OCount*100/(Len-i)); if(xx[i] == 'o'){ OCount--; } } } static IEnumerable<char> GetChar(){ int Moji = 0; int Count = 1; char tmp = (char)0; while((Moji = Console.Read()) != -1){ if(Moji <65 || Moji >90){ break; } tmp = (char)(( Moji - 65 + 26 - Count)%26 + 65); yield return tmp; Count = (Count + 1)%26; } } }