結果

問題 No.892 タピオカ
ユーザー tentententen
提出日時 2020-08-30 21:49:10
言語 Java21
(openjdk 21)
結果
AC  
実行時間 121 ms / 1,000 ms
コード長 369 bytes
コンパイル時間 1,890 ms
コンパイル使用メモリ 72,352 KB
実行使用メモリ 56,136 KB
最終ジャッジ日時 2023-08-09 18:40:26
合計ジャッジ時間 4,077 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
56,136 KB
testcase_01 AC 120 ms
55,776 KB
testcase_02 AC 121 ms
56,048 KB
testcase_03 AC 117 ms
56,136 KB
testcase_04 AC 118 ms
55,844 KB
testcase_05 AC 117 ms
55,832 KB
testcase_06 AC 118 ms
55,960 KB
testcase_07 AC 121 ms
56,076 KB
testcase_08 AC 121 ms
55,788 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