結果

問題 No.88 次はどっちだ
ユーザー うわばみうわばみ
提出日時 2020-04-29 20:47:12
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 49 ms / 5,000 ms
コード長 794 bytes
コンパイル時間 1,103 ms
コンパイル使用メモリ 67,940 KB
実行使用メモリ 23,252 KB
最終ジャッジ日時 2023-08-19 22:37:17
合計ジャッジ時間 2,363 ms
ジャッジサーバーID
(参考情報)
judge10 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 48 ms
21,296 KB
testcase_01 AC 48 ms
21,364 KB
testcase_02 AC 48 ms
21,288 KB
testcase_03 AC 48 ms
23,252 KB
testcase_04 AC 48 ms
23,196 KB
testcase_05 AC 49 ms
23,244 KB
testcase_06 AC 49 ms
21,244 KB
testcase_07 AC 48 ms
21,152 KB
testcase_08 AC 48 ms
21,196 KB
testcase_09 AC 48 ms
21,308 KB
testcase_10 AC 48 ms
21,380 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

class Program
{
    static void Main()
    {
        string s = Console.ReadLine();
        string field = "";
        for(int i = 0; i < 8; i++)
        {
            field += Console.ReadLine();
        }
        if(field.ToCharArray().Count(c => c == '.') % 2 == 0)
        {
            if(s == "oda")
            {
                Console.WriteLine($"oda");
            }
            else
            {
                Console.WriteLine($"yukiko");
            }
        }
        else
        {
            if(s != "oda")
            {
                Console.WriteLine($"oda");
            }
            else
            {
                Console.WriteLine($"yukiko");
            }
        }
    }
}
0