結果

問題 No.892 タピオカ
ユーザー yukiyuki
提出日時 2020-08-19 23:09:26
言語 Java19
(openjdk 21)
結果
WA  
実行時間 -
コード長 627 bytes
コンパイル時間 4,716 ms
コンパイル使用メモリ 70,928 KB
実行使用メモリ 57,944 KB
最終ジャッジ日時 2023-08-02 13:05:17
合計ジャッジ時間 6,523 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner in = new Scanner(System.in);
        int sum = 0;
        
        for(int i=0; i<3; i++){
            double N = in.nextDouble();
            double M = in.nextDouble();
            int L = (int)Math.pow(N, M);
            sum += L;
        }

        if(solve(sum)){
            System.out.println("\":-)\"");
        }else{
            System.out.println("\":-(\"");
        }
    }
    
    static boolean solve(int sum){
        if(sum % 2 == 0)
            return true;
        return false;
    }

}

0