結果

問題 No.892 タピオカ
ユーザー nogisunnogisun
提出日時 2020-03-27 18:14:10
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 578 bytes
コンパイル時間 2,902 ms
コンパイル使用メモリ 71,748 KB
実行使用メモリ 56,444 KB
最終ジャッジ日時 2023-08-30 16:39:53
合計ジャッジ時間 4,625 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 115 ms
56,376 KB
testcase_01 WA -
testcase_02 AC 114 ms
56,084 KB
testcase_03 WA -
testcase_04 AC 116 ms
55,516 KB
testcase_05 WA -
testcase_06 AC 113 ms
55,608 KB
testcase_07 WA -
testcase_08 AC 118 ms
55,688 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
public class No892{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();
        int d = sc.nextInt();
        int e = sc.nextInt();
        int f = sc.nextInt();
        long firstNumber = a^b;
        long secNumber = c^d;
        long thirdNumber = e^f;
        if ((firstNumber+secNumber+thirdNumber)%2 == 0){
            System.out.println(":-)");
        } else {
            System.out.println(":-(");
        }
    }
}
0