結果
問題 | No.892 タピオカ |
ユーザー |
![]() |
提出日時 | 2019-12-08 23:23:35 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 136 ms / 1,000 ms |
コード長 | 459 bytes |
コンパイル時間 | 2,113 ms |
コンパイル使用メモリ | 76,168 KB |
実行使用メモリ | 41,856 KB |
最終ジャッジ日時 | 2025-01-02 19:04:59 |
合計ジャッジ時間 | 4,046 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 6 |
ソースコード
import java.util.*; class Main{ public static void main (String[] args) { Scanner s = new Scanner(System.in); int l = 0; for (int i =0; i<3 ;i++){ int a =s.nextInt(); int b =s.nextInt(); l += a%2; } if(l%2 == 0){ System.out.println(":-)"); }else{ System.out.println(":-("); } } }