結果

問題 No.88 次はどっちだ
ユーザー tsunabittsunabit
提出日時 2018-08-19 15:06:03
言語 Java21
(openjdk 21)
結果
AC  
実行時間 114 ms / 5,000 ms
コード長 620 bytes
コンパイル時間 4,250 ms
コンパイル使用メモリ 72,604 KB
実行使用メモリ 56,572 KB
最終ジャッジ日時 2023-08-10 22:18:25
合計ジャッジ時間 5,821 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 113 ms
55,780 KB
testcase_01 AC 110 ms
56,036 KB
testcase_02 AC 108 ms
53,808 KB
testcase_03 AC 110 ms
55,904 KB
testcase_04 AC 108 ms
55,808 KB
testcase_05 AC 109 ms
56,484 KB
testcase_06 AC 109 ms
56,520 KB
testcase_07 AC 113 ms
56,572 KB
testcase_08 AC 114 ms
55,704 KB
testcase_09 AC 112 ms
54,200 KB
testcase_10 AC 113 ms
55,756 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