結果
| 問題 |
No.892 タピオカ
|
| コンテスト | |
| ユーザー |
mossari_aozora
|
| 提出日時 | 2019-10-01 13:26:01 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 29 ms / 1,000 ms |
| コード長 | 912 bytes |
| コンパイル時間 | 2,219 ms |
| コンパイル使用メモリ | 114,256 KB |
| 実行使用メモリ | 26,968 KB |
| 最終ジャッジ日時 | 2024-10-03 05:40:44 |
| 合計ジャッジ時間 | 3,027 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 6 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System;
using System.Numerics;
using System.Collections.Generic;
using System.Linq;
namespace Tapi
{
class Program
{
static void Main(string[] args)
{
var input = Console.ReadLine().Split(' ');
long a1 = long.Parse(input[0]);
long b1 = long.Parse(input[1]);
long a2 = long.Parse(input[2]);
long b2 = long.Parse(input[3]);
long a3 = long.Parse(input[4]);
long b3 = long.Parse(input[5]);
List<bool> IsEvn = new List<bool>()
{
a1 % 2 == 0, a2 % 2 == 0, a3 % 2 == 0
};
var oddCnt = IsEvn.Where(x => x == false).Count();
if (oddCnt == 1 || oddCnt == 3)
{
Console.WriteLine(":-(");
}
else
{
Console.WriteLine(":-)");
}
}
}
}
mossari_aozora