結果
| 問題 |
No.88 次はどっちだ
|
| コンテスト | |
| ユーザー |
うに太郎
|
| 提出日時 | 2015-06-10 11:35:39 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 17 ms / 5,000 ms |
| コード長 | 923 bytes |
| コンパイル時間 | 670 ms |
| コンパイル使用メモリ | 110,956 KB |
| 実行使用メモリ | 17,408 KB |
| 最終ジャッジ日時 | 2024-07-06 15:20:19 |
| 合計ジャッジ時間 | 1,365 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 |
コンパイルメッセージ
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;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
bool isSaki = true;
string saki = Console.ReadLine();
string str = "";
for (int i = 0; i < 8; i++)
{
str += Console.ReadLine();
}
for (int i = 0; i < str.Length; i++)
{
if (str[i] == 'w' || str[i] == 'b')
{
isSaki = (isSaki) ? false : true;
}
}
string ans;
if (isSaki)
{
ans = saki;
}
else
{
ans = (saki == "oda") ? "yukiko" : "oda";
}
Console.WriteLine(ans);
}
}
}
うに太郎