結果

問題 No.667 Mice's Luck(ネズミ達の運)
ユーザー nakamura0422nakamura0422
提出日時 2023-01-10 13:07:46
言語 C#
(.NET 8.0.203)
結果
TLE  
実行時間 -
コード長 401 bytes
コンパイル時間 11,842 ms
コンパイル使用メモリ 142,624 KB
実行使用メモリ 35,624 KB
最終ジャッジ日時 2023-08-23 10:13:16
合計ジャッジ時間 11,294 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 50 ms
28,832 KB
testcase_01 AC 52 ms
30,556 KB
testcase_02 AC 50 ms
28,668 KB
testcase_03 AC 53 ms
28,884 KB
testcase_04 AC 109 ms
28,868 KB
testcase_05 TLE -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
権限があれば一括ダウンロードができます
コンパイルメッセージ
  Determining projects to restore...
  Restored /home/judge/data/code/main.csproj (in 170 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 (int i in Enumerable.Range(0, s.Count()))
	    	Console.WriteLine((Double)s.Skip(i).Count(x => x == 'o') / (Double)(s.Skip(i).Count(x => x == 'o') + s.Skip(i).Count(x => x == 'x'))  * 100.0);
   }
}
0