結果

問題 No.892 タピオカ
ユーザー ks2mks2m
提出日時 2019-09-27 21:26:19
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 408 bytes
コンパイル時間 2,009 ms
コンパイル使用メモリ 78,832 KB
実行使用メモリ 57,900 KB
最終ジャッジ日時 2023-10-25 01:40:57
合計ジャッジ時間 3,843 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 128 ms
57,336 KB
testcase_01 AC 127 ms
57,508 KB
testcase_02 AC 128 ms
57,420 KB
testcase_03 AC 128 ms
57,612 KB
testcase_04 AC 127 ms
57,640 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 128 ms
57,580 KB
testcase_08 AC 127 ms
57,664 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int a1 = sc.nextInt(); sc.nextInt();
		int a2 = sc.nextInt(); sc.nextInt();
		int a3 = sc.nextInt(); sc.nextInt();
		sc.close();

		if (a1 % 2 == 1 && a2 % 2 == 1 && a3 % 2 == 1) {
			System.out.println(":-(");
		} else {
			System.out.println(":-)");
		}
	}
}
0