結果

問題 No.88 次はどっちだ
ユーザー swdamdrswdamdr
提出日時 2017-01-25 17:07:32
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 51 ms / 5,000 ms
コード長 644 bytes
コンパイル時間 2,196 ms
コンパイル使用メモリ 100,288 KB
実行使用メモリ 22,536 KB
最終ジャッジ日時 2023-08-24 22:59:07
合計ジャッジ時間 3,212 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 51 ms
20,472 KB
testcase_01 AC 50 ms
20,608 KB
testcase_02 AC 51 ms
20,616 KB
testcase_03 AC 51 ms
20,472 KB
testcase_04 AC 51 ms
22,468 KB
testcase_05 AC 51 ms
22,536 KB
testcase_06 AC 50 ms
20,472 KB
testcase_07 AC 51 ms
20,552 KB
testcase_08 AC 51 ms
20,600 KB
testcase_09 AC 51 ms
20,596 KB
testcase_10 AC 51 ms
18,468 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
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.Linq;
using System.Collections.Generic;

class Program
{
    static void Main(string[] args)
    {
        string s = Console.ReadLine();
        string[] name;
        if (s == "oda")
        {
            name = new string[] { "oda", "yukiko" };
        }
        else
        {
            name = new string[] { "yukiko", "oda" };
        }
        int count = 0;

        for (int i = 0; i < 8; i++)
        {
            string line = Console.ReadLine();
            count += line.Length - line.Replace(".", "").Length;
        }

        Console.WriteLine(name[count % 2]);
        Console.ReadLine();
    }
}

0