結果

問題 No.88 次はどっちだ
ユーザー dazydazy
提出日時 2016-09-09 18:30:42
言語 Java21
(openjdk 21)
結果
AC  
実行時間 110 ms / 5,000 ms
コード長 579 bytes
コンパイル時間 3,451 ms
コンパイル使用メモリ 75,060 KB
実行使用メモリ 54,848 KB
最終ジャッジ日時 2024-04-28 01:00:01
合計ジャッジ時間 4,718 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 108 ms
53,604 KB
testcase_01 AC 108 ms
53,228 KB
testcase_02 AC 105 ms
53,676 KB
testcase_03 AC 104 ms
53,800 KB
testcase_04 AC 90 ms
52,568 KB
testcase_05 AC 104 ms
53,112 KB
testcase_06 AC 106 ms
54,012 KB
testcase_07 AC 109 ms
53,964 KB
testcase_08 AC 110 ms
53,640 KB
testcase_09 AC 103 ms
54,848 KB
testcase_10 AC 102 ms
54,120 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Run {
    public static void main (String arg[]) {
        Scanner scan = new Scanner(System.in);
        String S = scan.next();
        int sum = 4;
        String B;
        for (byte i = 0; i < 8; i++) {
            B = scan.next();
            for (byte j = 0; j < 8; j++) {
                if (B.charAt(j)!='.') sum++;
            }
        }
        String ans;
        if (sum%2==0) ans = S;
        else {
            if (S.equals("oda")) ans = "yukiko";
            else ans = "oda";
        }

        System.out.println(ans);
    }
}
0