結果
| 問題 | No.892 タピオカ |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-08-19 23:09:26 |
| 言語 | Java (openjdk 26.0.2.1 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 627 bytes |
| 記録 | |
| コンパイル時間 | 1,391 ms |
| コンパイル使用メモリ | 85,332 KB |
| 実行使用メモリ | 43,324 KB |
| 最終ジャッジ日時 | 2026-09-14 15:02:48 |
| 合計ジャッジ時間 | 3,221 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
}
}