結果
問題 |
No.892 タピオカ
|
ユーザー |
|
提出日時 | 2020-08-19 23:09:26 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 627 bytes |
コンパイル時間 | 2,144 ms |
コンパイル使用メモリ | 74,268 KB |
実行使用メモリ | 41,776 KB |
最終ジャッジ日時 | 2024-10-12 08:37:07 |
合計ジャッジ時間 | 4,035 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 6 |
ソースコード
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; } }