結果

問題 No.88 次はどっちだ
ユーザー tsunabittsunabit
提出日時 2018-08-19 15:06:03
言語 Java21
(openjdk 21)
結果
AC  
実行時間 130 ms / 5,000 ms
コード長 620 bytes
コンパイル時間 4,766 ms
コンパイル使用メモリ 76,220 KB
実行使用メモリ 54,260 KB
最終ジャッジ日時 2024-04-28 15:18:51
合計ジャッジ時間 7,076 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 129 ms
54,180 KB
testcase_01 AC 130 ms
54,140 KB
testcase_02 AC 126 ms
53,796 KB
testcase_03 AC 128 ms
53,960 KB
testcase_04 AC 116 ms
52,632 KB
testcase_05 AC 127 ms
54,016 KB
testcase_06 AC 129 ms
53,904 KB
testcase_07 AC 128 ms
54,068 KB
testcase_08 AC 128 ms
53,820 KB
testcase_09 AC 126 ms
54,128 KB
testcase_10 AC 130 ms
54,260 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.util.stream.Stream;
import java.time.*;
import java.time.format.*;

public class No88 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        int count = 0;
        for(int i = 0; i < 8; i++) {
            count += sc.next().replace("." , "").length();
        }
        if(count % 2 == 0) {
            System.out.println(s);
        }else {
            if("oda".equals(s)) {
                System.out.println("yukiko");
            }else {
                System.out.println("oda");
            }
        }
	}
}
0