結果

問題 No.88 次はどっちだ
ユーザー spaciaspacia
提出日時 2015-12-23 13:43:49
言語 Java21
(openjdk 21)
結果
AC  
実行時間 56 ms / 5,000 ms
コード長 550 bytes
コンパイル時間 2,352 ms
コンパイル使用メモリ 74,812 KB
実行使用メモリ 53,548 KB
最終ジャッジ日時 2023-10-19 01:45:47
合計ジャッジ時間 3,572 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 56 ms
52,496 KB
testcase_01 AC 55 ms
53,544 KB
testcase_02 AC 56 ms
51,564 KB
testcase_03 AC 54 ms
53,548 KB
testcase_04 AC 55 ms
53,544 KB
testcase_05 AC 54 ms
52,512 KB
testcase_06 AC 55 ms
53,540 KB
testcase_07 AC 54 ms
53,544 KB
testcase_08 AC 54 ms
53,548 KB
testcase_09 AC 55 ms
53,548 KB
testcase_10 AC 56 ms
53,548 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.*;
import java.util.*;

class Main88 {
	
	public static void out (Object o) {
		System.out.println(o);
	}
	
	public static void main (String[] args) throws IOException {
		BufferedReader br = 
			new BufferedReader(new InputStreamReader(System.in));
		
		String name = br.readLine();
		int cnt = 0;
		
		for (int i = 0; i < 8; i++) {
			String line = br.readLine();
			for (int j = 0; j < 8; j++) {
				cnt = line.charAt(j) != '.' ? cnt + 1 : cnt;
			}
		}
		
		out(cnt % 2 == 0 ? name : name.equals("oda") ? "yukiko" : "oda");
		
	}
}
0