結果

問題 No.88 次はどっちだ
ユーザー chiho_miyakochiho_miyako
提出日時 2015-04-09 12:31:11
言語 Java21
(openjdk 21)
結果
AC  
実行時間 121 ms / 5,000 ms
コード長 775 bytes
コンパイル時間 1,888 ms
コンパイル使用メモリ 71,360 KB
実行使用メモリ 56,532 KB
最終ジャッジ日時 2023-09-17 18:59:28
合計ジャッジ時間 4,064 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 118 ms
56,052 KB
testcase_01 AC 116 ms
56,532 KB
testcase_02 AC 117 ms
56,100 KB
testcase_03 AC 117 ms
55,720 KB
testcase_04 AC 118 ms
55,992 KB
testcase_05 AC 118 ms
54,316 KB
testcase_06 AC 117 ms
55,732 KB
testcase_07 AC 119 ms
56,264 KB
testcase_08 AC 119 ms
53,608 KB
testcase_09 AC 121 ms
55,772 KB
testcase_10 AC 117 ms
56,276 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
public class Main {
    public static void main(String[] args) throws Exception {
        Scanner koko = new Scanner(System.in);
        String s = koko.next();
        String[] b = new String[8];
        int count =0;
        for(int i=0; i<8; i++){
            b[i]=koko.next();
            char[] ch = b[i].toCharArray();
            for(int j=0; j<8; j++){
                if(ch[j]=='.'){
                    
                }else{
                    count++;
                }
            }
        }
        if(count%2==0){
            System.out.println(s);
        }else{
            if(s.equals("oda")){
                System.out.println("yukiko");
            }else{
                System.out.println("oda");
            }
        }
    }
}
0