結果

問題 No.667 Mice's Luck(ネズミ達の運)
ユーザー 1644吉田英陽1644吉田英陽
提出日時 2020-12-22 19:46:16
言語 C#(csc)
(csc 3.9.0)
結果
RE  
実行時間 -
コード長 1,173 bytes
コンパイル時間 838 ms
コンパイル使用メモリ 108,504 KB
実行使用メモリ 27,080 KB
最終ジャッジ日時 2023-10-21 13:01:56
合計ジャッジ時間 3,907 ms
ジャッジサーバーID
(参考情報)
judge10 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 RE -
testcase_07 RE -
testcase_08 AC 573 ms
26,848 KB
testcase_09 RE -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp131
{
    class Program
    {
        static void Main(string[] args)
        {
            string n = Console.ReadLine();
            char[] h = new char[n.Length];
            int o = 0;
            int x = 0;
            double a = 0;
            for(int i = 0; i < n.Length; i++)
            {
                //h[i] = n[i];
                if (n[i] == 'o')
                {
                    o += 1;
                }
                else 
                {
                    x += 1;
                }
            }
          //  int[] m = new int[n.Length];
            for (int i = 0; i < n.Length; i++)
            {
                a = (o / o + x)*100;
                Console.WriteLine(a);
                if (n[i] == 'o')
                {
                    o -= 1;
                  //  n[i] = '-';
                }
                else if (n[i] == 'x')
                {
                    x -= 1;
                    //n[i] = '-';
                }
            }
            Console.ReadLine();
        }
    }
}
0