結果

問題 No.892 タピオカ
ユーザー machoniumpmachoniump
提出日時 2021-03-18 16:40:16
言語 Java21
(openjdk 21)
結果
AC  
実行時間 160 ms / 1,000 ms
コード長 534 bytes
コンパイル時間 2,300 ms
コンパイル使用メモリ 74,680 KB
実行使用メモリ 41,948 KB
最終ジャッジ日時 2024-04-28 06:41:10
合計ジャッジ時間 4,503 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 156 ms
41,612 KB
testcase_01 AC 158 ms
41,728 KB
testcase_02 AC 157 ms
41,620 KB
testcase_03 AC 160 ms
41,800 KB
testcase_04 AC 156 ms
41,928 KB
testcase_05 AC 154 ms
41,896 KB
testcase_06 AC 159 ms
41,948 KB
testcase_07 AC 156 ms
41,620 KB
testcase_08 AC 159 ms
41,820 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])%2;
    return t%2<1?true:false;
  }
}
0