結果

問題 No.892 タピオカ
ユーザー d07ki3bq1uzd07ki3bq1uz
提出日時 2019-12-08 23:23:35
言語 Java21
(openjdk 21)
結果
AC  
実行時間 118 ms / 1,000 ms
コード長 459 bytes
コンパイル時間 1,961 ms
コンパイル使用メモリ 71,576 KB
実行使用メモリ 56,184 KB
最終ジャッジ日時 2023-08-30 21:44:56
合計ジャッジ時間 4,377 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 118 ms
55,808 KB
testcase_01 AC 116 ms
55,936 KB
testcase_02 AC 116 ms
56,036 KB
testcase_03 AC 115 ms
55,920 KB
testcase_04 AC 116 ms
55,456 KB
testcase_05 AC 114 ms
55,588 KB
testcase_06 AC 117 ms
56,184 KB
testcase_07 AC 118 ms
56,104 KB
testcase_08 AC 118 ms
55,644 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

class Main{
    public static void main (String[] args) {
        
        Scanner s = new Scanner(System.in);
        
        int l = 0;
      
        for (int i =0; i<3 ;i++){
            int a =s.nextInt();
            int b =s.nextInt();
        
            l += a%2;
        } 
            if(l%2 == 0){
                System.out.println(":-)");
            }else{
                System.out.println(":-(");
            }
    }
}
0