結果

問題 No.88 次はどっちだ
ユーザー jimanojimano
提出日時 2018-02-04 17:44:12
言語 Java21
(openjdk 21)
結果
AC  
実行時間 43 ms / 5,000 ms
コード長 637 bytes
コンパイル時間 3,082 ms
コンパイル使用メモリ 71,768 KB
実行使用メモリ 49,768 KB
最終ジャッジ日時 2023-09-12 16:04:15
合計ジャッジ時間 4,319 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
49,348 KB
testcase_01 AC 43 ms
49,252 KB
testcase_02 AC 43 ms
49,240 KB
testcase_03 AC 42 ms
49,444 KB
testcase_04 AC 43 ms
49,240 KB
testcase_05 AC 43 ms
49,252 KB
testcase_06 AC 42 ms
49,128 KB
testcase_07 AC 43 ms
49,072 KB
testcase_08 AC 43 ms
49,768 KB
testcase_09 AC 42 ms
49,260 KB
testcase_10 AC 42 ms
49,136 KB
権限があれば一括ダウンロードができます

ソースコード

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+1 : teban;
				}
			}

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

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