結果

問題 No.88 次はどっちだ
ユーザー kou6839kou6839
提出日時 2014-12-08 19:40:21
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 593 bytes
コンパイル時間 2,309 ms
コンパイル使用メモリ 71,992 KB
実行使用メモリ 55,980 KB
最終ジャッジ日時 2023-09-02 11:44:12
合計ジャッジ時間 4,494 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
55,772 KB
testcase_01 AC 124 ms
55,696 KB
testcase_02 AC 123 ms
55,856 KB
testcase_03 AC 122 ms
53,860 KB
testcase_04 AC 122 ms
55,952 KB
testcase_05 AC 124 ms
55,852 KB
testcase_06 WA -
testcase_07 AC 123 ms
55,912 KB
testcase_08 AC 122 ms
55,968 KB
testcase_09 AC 124 ms
55,816 KB
testcase_10 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.math.*;
import java.util.*;


public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String sen = sc.next();
		char[][] ban = new char[8][8];
		for(int i=0;i<8;i++){
			String temp=sc.next();
			ban[i]=temp.toCharArray();
		}
		int count=0;
		for(int i=0;i<8;i++){
			for(int j=0;j<8;j++){
				if(ban[i][j]!='.') count++;
			}
		}
		if(count%2==0){
			System.out.println(sen);
		}else{
			if(sen.equals("oda")){
				System.out.println("yukiko");
			}else{
				System.out.println("odas");
			}
		}
	}
}	
0