結果

問題 No.892 タピオカ
ユーザー nogisun
提出日時 2020-03-27 18:14:10
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 578 bytes
コンパイル時間 3,945 ms
コンパイル使用メモリ 80,752 KB
実行使用メモリ 54,424 KB
最終ジャッジ日時 2025-01-02 09:05:33
合計ジャッジ時間 5,092 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 3 WA * 3
権限があれば一括ダウンロードができます

ソースコード

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