結果

問題 No.667 Mice's Luck(ネズミ達の運)
ユーザー nakamura0422nakamura0422
提出日時 2023-01-10 10:37:18
言語 C#
(.NET 8.0.203)
結果
TLE  
実行時間 -
コード長 371 bytes
コンパイル時間 6,932 ms
コンパイル使用メモリ 144,424 KB
実行使用メモリ 140,008 KB
最終ジャッジ日時 2023-08-23 09:20:51
合計ジャッジ時間 14,668 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 55 ms
28,860 KB
testcase_01 AC 54 ms
28,712 KB
testcase_02 AC 55 ms
28,636 KB
testcase_03 AC 56 ms
30,860 KB
testcase_04 AC 82 ms
30,912 KB
testcase_05 TLE -
testcase_06 TLE -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
権限があれば一括ダウンロードができます
コンパイルメッセージ
  Determining projects to restore...
  Restored /home/judge/data/code/main.csproj (in 120 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.Linq;
using System.Collections;
using System.Collections.Generic;

static class MicesLuck
{
    static void Main()
    {
	    string s = Console.ReadLine();
	    
	    foreach (Double item in Enumerable.Range(0, s.Count()).Select((x) => (Double)s.Skip(x).Count(y => y == 'o') / s.Skip(x).Count() * 100.0))
	    	Console.WriteLine(item);
    }
}
0