結果
問題 |
No.88 次はどっちだ
|
ユーザー |
![]() |
提出日時 | 2015-04-20 23:40:53 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 1,070 bytes |
コンパイル時間 | 698 ms |
コンパイル使用メモリ | 103,040 KB |
実行使用メモリ | 17,280 KB |
最終ジャッジ日時 | 2024-07-04 18:55:25 |
合計ジャッジ時間 | 1,413 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 5 WA * 6 |
コンパイルメッセージ
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 ForYukicoder { class Program { static void Main(string[] args) { string S = Console.ReadLine(); string[] B = new string[8]; for (int i = 0; i < 8; i++) { B[i] = Console.ReadLine(); } //----------------- int white = 0; int black = 0; foreach (var row in B) { foreach (var column in row) { if (column == 'w') white++; else if (column == 'b') black++; } } string str; if (white == black) { //黒の順番 str = S; } else { //白の順番 str = (S == "oda") ? "yukiko" : "oda"; } Console.WriteLine(str); } } }