結果

問題 No.892 タピオカ
ユーザー tentententen
提出日時 2020-08-30 21:49:10
言語 Java21
(openjdk 21)
結果
AC  
実行時間 129 ms / 1,000 ms
コード長 369 bytes
コンパイル時間 2,111 ms
コンパイル使用メモリ 74,060 KB
実行使用メモリ 54,224 KB
最終ジャッジ日時 2024-04-27 13:24:32
合計ジャッジ時間 4,097 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 129 ms
54,052 KB
testcase_01 AC 120 ms
53,980 KB
testcase_02 AC 121 ms
54,068 KB
testcase_03 AC 112 ms
52,816 KB
testcase_04 AC 127 ms
54,224 KB
testcase_05 AC 120 ms
53,876 KB
testcase_06 AC 124 ms
54,000 KB
testcase_07 AC 125 ms
54,100 KB
testcase_08 AC 122 ms
54,040 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

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