結果
| 問題 |
No.88 次はどっちだ
|
| コンテスト | |
| ユーザー |
mban
|
| 提出日時 | 2016-11-07 12:19:21 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 702 bytes |
| コンパイル時間 | 687 ms |
| コンパイル使用メモリ | 110,380 KB |
| 実行使用メモリ | 25,376 KB |
| 最終ジャッジ日時 | 2024-11-25 03:48:49 |
| 合計ジャッジ時間 | 1,425 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 9 WA * 2 |
コンパイルメッセージ
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;
class Magatro
{
static void Main()
{
string S = Console.ReadLine();
string[] B = new string[8];
for(int i = 0; i < 8; i++)
{
B[i] = Console.ReadLine();
}
int cnt = 0;
for(int i = 0; i < 8; i++)
{
for(int j = 0; j < 8; j++)
{
if (B[i][j] != '.')
{
cnt++;
}
}
}
if ((S == "oda"?0:1+cnt)%2==0)
{
Console.WriteLine("oda");
}
else
{
Console.WriteLine("yukiko");
}
}
}
mban