結果
| 問題 |
No.892 タピオカ
|
| コンテスト | |
| ユーザー |
MattyaaMattyan
|
| 提出日時 | 2019-10-01 21:10:53 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 142 ms / 1,000 ms |
| コード長 | 575 bytes |
| コンパイル時間 | 2,007 ms |
| コンパイル使用メモリ | 74,456 KB |
| 実行使用メモリ | 54,288 KB |
| 最終ジャッジ日時 | 2024-10-03 05:46:12 |
| 合計ジャッジ時間 | 3,824 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 6 |
ソースコード
import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
// Your code here!
Scanner sc = new Scanner(System.in);
int seki = 0;
int sum = 0;
for(int i=0;i<3;i++)
{
int num = sc.nextInt();
int num2 = sc.nextInt();
if(num%2==1)
{
sum++;
}
}
if(sum%2==0)
{
System.out.println(":-)");
}
else
{
System.out.println(":-(");
}
}
}
MattyaaMattyan