結果
問題 | No.88 次はどっちだ |
ユーザー | No |
提出日時 | 2015-04-21 00:06:17 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 49 ms / 5,000 ms |
コード長 | 1,007 bytes |
コンパイル時間 | 2,043 ms |
コンパイル使用メモリ | 104,840 KB |
実行使用メモリ | 22,616 KB |
最終ジャッジ日時 | 2023-09-18 02:04:04 |
合計ジャッジ時間 | 3,314 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 48 ms
22,616 KB |
testcase_01 | AC | 49 ms
18,500 KB |
testcase_02 | AC | 49 ms
20,644 KB |
testcase_03 | AC | 49 ms
22,504 KB |
testcase_04 | AC | 48 ms
22,448 KB |
testcase_05 | AC | 48 ms
20,460 KB |
testcase_06 | AC | 48 ms
20,516 KB |
testcase_07 | AC | 48 ms
20,616 KB |
testcase_08 | AC | 48 ms
20,436 KB |
testcase_09 | AC | 47 ms
22,508 KB |
testcase_10 | AC | 48 ms
22,496 KB |
コンパイルメッセージ
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 stone = 0; foreach (var row in B) { foreach (var column in row) { if (column == 'w' || column == 'b') stone++; } } string str; if (stone % 2 == 0) { //黒の順番 str = S; } else { //白の順番 str = (S == "oda") ? "yukiko" : "oda"; } Console.WriteLine(str); } } }