結果

問題 No.892 タピオカ
ユーザー ks2m
提出日時 2019-09-27 21:26:19
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 408 bytes
コンパイル時間 2,278 ms
コンパイル使用メモリ 74,476 KB
実行使用メモリ 54,216 KB
最終ジャッジ日時 2024-09-24 20:44:36
合計ジャッジ時間 3,832 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 4 WA * 2
権限があれば一括ダウンロードができます

ソースコード

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