結果
| 問題 |
No.892 タピオカ
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-08-19 23:14:26 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 801 bytes |
| コンパイル時間 | 2,317 ms |
| コンパイル使用メモリ | 75,044 KB |
| 実行使用メモリ | 54,368 KB |
| 最終ジャッジ日時 | 2024-10-12 08:46:16 |
| 合計ジャッジ時間 | 4,135 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 4 WA * 2 |
ソースコード
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(":-(");
}
// if(sum % 2 == 0){
// System.out.println("\":-)\"");
// }else{
// System.out.println("\":-(\"");
// }
}
static boolean solve(int sum){
if(sum % 2 == 0)
return true;
return false;
}
}