結果
問題 | No.667 Mice's Luck(ネズミ達の運) |
ユーザー | nakamura0422 |
提出日時 | 2023-01-11 10:49:34 |
言語 | C# (.NET 8.0.203) |
結果 |
TLE
|
実行時間 | - |
コード長 | 349 bytes |
コンパイル時間 | 11,989 ms |
コンパイル使用メモリ | 149,364 KB |
実行使用メモリ | 35,212 KB |
最終ジャッジ日時 | 2023-08-23 18:26:05 |
合計ジャッジ時間 | 17,593 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 50 ms
30,784 KB |
testcase_01 | AC | 48 ms
28,656 KB |
testcase_02 | AC | 49 ms
28,760 KB |
testcase_03 | AC | 49 ms
28,744 KB |
testcase_04 | AC | 61 ms
28,800 KB |
testcase_05 | AC | 1,087 ms
29,884 KB |
testcase_06 | TLE | - |
testcase_07 | -- | - |
testcase_08 | -- | - |
testcase_09 | -- | - |
コンパイルメッセージ
Determining projects to restore... Restored /home/judge/data/code/main.csproj (in 142 ms). .NET 向け Microsoft (R) Build Engine バージョン 17.0.0-preview-21470-01+cb055d28f Copyright (C) Microsoft Corporation.All rights reserved. プレビュー版の .NET を使用しています。https://aka.ms/dotnet-core-preview をご覧ください main -> /home/judge/data/code/bin/Release/net6.0/main.dll main -> /home/judge/data/code/bin/Release/net6.0/publish/
ソースコード
using System; using System.Collections.Generic; using System.Linq; static class MicesLuck { static void Main() { var s = Console.ReadLine().ToList(); foreach (var i in Enumerable.Range(0, s.Count())) { Console.WriteLine((Double)s.Count(x => x == 'o') / s.Count() * 100.0); s.RemoveAt(0); } } }