結果

問題 No.892 タピオカ
ユーザー 025218025218
提出日時 2019-11-12 13:48:17
言語 Java21
(openjdk 21)
結果
AC  
実行時間 140 ms / 1,000 ms
コード長 548 bytes
コンパイル時間 3,795 ms
コンパイル使用メモリ 74,228 KB
実行使用メモリ 57,712 KB
最終ジャッジ日時 2023-10-19 03:35:44
合計ジャッジ時間 5,808 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 137 ms
55,392 KB
testcase_01 AC 135 ms
57,380 KB
testcase_02 AC 137 ms
57,712 KB
testcase_03 AC 136 ms
57,524 KB
testcase_04 AC 136 ms
57,396 KB
testcase_05 AC 138 ms
55,660 KB
testcase_06 AC 140 ms
57,432 KB
testcase_07 AC 135 ms
57,544 KB
testcase_08 AC 136 ms
57,520 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        long[][] t = new long[3][2];
        Scanner sc = new Scanner(System.in);
        for(int i=0;i<3;i++){
            t[i][0] = sc.nextLong();
            t[i][1] = sc.nextLong();
        }
        sc.close();

        int c = 0;
        for(int i=0; i<3 ;i++){
            if(t[i][0] % 2 == 0) c++;
        }

        if(c==1 || c== 3){
            System.out.println(":-)");
        }else{
            System.out.println(":-(");
        }
    }
}
0