結果
| 問題 |
No.892 タピオカ
|
| コンテスト | |
| ユーザー |
ks2m
|
| 提出日時 | 2019-09-27 21:27:20 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 132 ms / 1,000 ms |
| コード長 | 468 bytes |
| コンパイル時間 | 2,172 ms |
| コンパイル使用メモリ | 75,572 KB |
| 実行使用メモリ | 54,184 KB |
| 最終ジャッジ日時 | 2024-09-24 20:45:59 |
| 合計ジャッジ時間 | 3,695 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 6 |
ソースコード
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();
int cnt = 0;
if (a1 % 2 ==1) cnt++;
if (a2 % 2 ==1) cnt++;
if (a3 % 2 ==1) cnt++;
if (cnt % 2 ==1) {
System.out.println(":-(");
} else {
System.out.println(":-)");
}
}
}
ks2m