結果

問題 No.892 タピオカ
ユーザー machoniumpmachoniump
提出日時 2021-03-18 16:36:03
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 532 bytes
コンパイル時間 2,354 ms
コンパイル使用メモリ 75,036 KB
実行使用メモリ 41,928 KB
最終ジャッジ日時 2024-04-28 06:37:28
合計ジャッジ時間 4,374 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 138 ms
40,736 KB
testcase_01 AC 150 ms
41,900 KB
testcase_02 AC 147 ms
41,756 KB
testcase_03 AC 148 ms
41,816 KB
testcase_04 AC 142 ms
41,064 KB
testcase_05 AC 151 ms
41,928 KB
testcase_06 AC 147 ms
41,816 KB
testcase_07 WA -
testcase_08 AC 149 ms
41,872 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
class Pictus{
  static public void main(String[]$){
    String s[]={};
    try{
      s=System.console().readLine().split(" ");
    }catch(java.lang.NullPointerException e){
      Scanner sc=new Scanner(System.in);
      s=sc.nextLine().split(" ");
      if(sc!=null){
        sc.close();
      }
    }finally{
      System.out.println(p(s[0],s[2],s[4])?":-)":":-(");
    }
  }
  static boolean p(String...a){
    int t=0,i=0;
    for(;i<3;i++) t+=Integer.parseInt(a[i]);
    return t%2<1?true:false;
  }
}
0