結果

問題 No.667 Mice's Luck(ネズミ達の運)
ユーザー nakamura0422nakamura0422
提出日時 2023-01-11 11:29:00
言語 C#
(.NET 8.0.203)
結果
TLE  
実行時間 -
コード長 331 bytes
コンパイル時間 12,038 ms
コンパイル使用メモリ 145,472 KB
実行使用メモリ 53,964 KB
最終ジャッジ日時 2023-08-23 19:00:28
合計ジャッジ時間 17,566 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 47 ms
28,560 KB
testcase_01 AC 47 ms
28,652 KB
testcase_02 AC 48 ms
28,520 KB
testcase_03 AC 48 ms
28,604 KB
testcase_04 AC 63 ms
31,512 KB
testcase_05 AC 1,214 ms
53,964 KB
testcase_06 TLE -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
権限があれば一括ダウンロードができます
コンパイルメッセージ
  Determining projects to restore...
  Restored /home/judge/data/code/main.csproj (in 136 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/

ソースコード

diff #

using System;
using System.Collections.Generic;
using System.Linq;

static class MicesLuck
{
    static void Main()
    {
	    var s = Console.ReadLine();
	    var sc = s;
	    foreach (var c in sc)
        {
	    	Console.WriteLine((Double)sc.Count(x => x == 'o') / sc.Count() * 100.0);
	    	sc = sc.Remove(0,1);
        }
   }
}
0