結果
| 問題 |
No.667 Mice's Luck(ネズミ達の運)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-05-23 09:51:12 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 425 ms / 2,000 ms |
| コード長 | 839 bytes |
| コンパイル時間 | 907 ms |
| コンパイル使用メモリ | 113,108 KB |
| 実行使用メモリ | 32,176 KB |
| 最終ジャッジ日時 | 2024-06-28 16:06:50 |
| 合計ジャッジ時間 | 4,495 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System;
using System.Collections.Generic;
using System.Linq;
public class Program
{
static void Main()
{
string xx = Console.ReadLine();
int Len = xx.Length;
int OCount = xx.Replace("x","").Length;
for(var i = 0;i<Len;i++){
Console.WriteLine("{0:0.00000000000}",(decimal)OCount*100/(Len-i));
if(xx[i] == 'o'){
OCount--;
}
}
}
static IEnumerable<char> GetChar(){
int Moji = 0;
int Count = 1;
char tmp = (char)0;
while((Moji = Console.Read()) != -1){
if(Moji <65 || Moji >90){
break;
}
tmp = (char)(( Moji - 65 + 26 - Count)%26 + 65);
yield return tmp;
Count = (Count + 1)%26;
}
}
}