結果

問題 No.667 Mice's Luck(ネズミ達の運)
ユーザー nakamura0422nakamura0422
提出日時 2023-01-10 11:52:15
言語 C#
(.NET 8.0.203)
結果
TLE  
実行時間 -
コード長 344 bytes
コンパイル時間 8,711 ms
コンパイル使用メモリ 141,972 KB
実行使用メモリ 136,692 KB
最終ジャッジ日時 2023-08-23 10:12:08
合計ジャッジ時間 16,171 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 51 ms
28,768 KB
testcase_01 AC 51 ms
28,572 KB
testcase_02 AC 51 ms
28,764 KB
testcase_03 AC 53 ms
28,684 KB
testcase_04 AC 78 ms
28,976 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 165 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') / s.Skip(i).Count() * 100.0);
   }
}
0