結果

問題 No.892 タピオカ
ユーザー d07ki3bq1uzd07ki3bq1uz
提出日時 2019-12-08 23:14:20
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 514 bytes
コンパイル時間 1,932 ms
コンパイル使用メモリ 72,540 KB
実行使用メモリ 56,160 KB
最終ジャッジ日時 2023-08-30 21:32:46
合計ジャッジ時間 3,799 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 125 ms
55,968 KB
testcase_01 AC 128 ms
55,832 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 128 ms
56,052 KB
testcase_05 AC 130 ms
55,636 KB
testcase_06 AC 124 ms
55,668 KB
testcase_07 AC 122 ms
55,968 KB
testcase_08 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

class Main{
    public static void main (String[] args) {
        
        Scanner s = new Scanner(System.in);
        
        int l = 0;
        int n = 0;
        for (int i =0; i<3 ;i++){
            int a =s.nextInt();
            int b =s.nextInt();
        
            l = (int)Math.pow(a,b);
        
            n += l;
        } 
            if(n%2 == 0){
                System.out.println(":-)");
            }else{
                System.out.println(":-(");
            }
    }
}
0