結果

問題 No.88 次はどっちだ
ユーザー jimanojimano
提出日時 2018-02-04 17:43:00
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 632 bytes
コンパイル時間 2,876 ms
コンパイル使用メモリ 72,568 KB
実行使用メモリ 49,648 KB
最終ジャッジ日時 2023-09-12 16:04:04
合計ジャッジ時間 3,994 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
49,224 KB
testcase_01 WA -
testcase_02 AC 42 ms
49,176 KB
testcase_03 AC 41 ms
49,264 KB
testcase_04 AC 41 ms
49,400 KB
testcase_05 AC 42 ms
49,648 KB
testcase_06 WA -
testcase_07 AC 40 ms
49,144 KB
testcase_08 AC 41 ms
49,292 KB
testcase_09 WA -
testcase_10 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

package me.yukicoder.lv1_5;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class No0088 {
	public static void main(String[] args) {
		try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
			String sente = br.readLine();
			String gote = sente.equals("oda") ? "yukiko" : "oda";
			int teban = 0;

			for (int i = 0; i < 8; i++) {
				for (char c : br.readLine().toCharArray()) {
					teban = (c != '.') ? teban++ : teban;
				}
			}

			System.out.println(teban % 2 == 0 ? sente : gote);

		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}
0