結果

問題 No.892 タピオカ
ユーザー AtriaAtria
提出日時 2019-11-10 14:05:52
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 61 ms / 1,000 ms
コード長 807 bytes
コンパイル時間 909 ms
コンパイル使用メモリ 65,696 KB
実行使用メモリ 23,828 KB
最終ジャッジ日時 2023-10-13 07:45:27
合計ジャッジ時間 2,097 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 60 ms
21,932 KB
testcase_01 AC 61 ms
21,812 KB
testcase_02 AC 60 ms
21,816 KB
testcase_03 AC 60 ms
21,776 KB
testcase_04 AC 60 ms
23,828 KB
testcase_05 AC 59 ms
21,704 KB
testcase_06 AC 61 ms
19,760 KB
testcase_07 AC 60 ms
21,848 KB
testcase_08 AC 60 ms
21,892 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;
using static System.Console;
using static System.Math;

namespace CP
{
    class Atria
    {
        static void Main(string[] args)
        {
            long[] s = ReadLine().Split(' ').Select(long.Parse).ToArray();
            int ans = 0;
            for (int i = 1; i <= 3; i++)
            {
                if (s[(i * 2) - 2] % 2 == 1)
                {
                    ans++;
                }
                else
                {
                    if (s[(i*2)-2] % 2 == 0)
                    {
                        ans += 2;
                    }
                    else ans++;
                }
            }
            WriteLine(ans % 2 == 0 ? ":-)" : ":-(");
        }

    }
}
0