結果

問題 No.892 タピオカ
ユーザー AtriaAtria
提出日時 2019-11-10 14:04:07
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 799 bytes
コンパイル時間 2,519 ms
コンパイル使用メモリ 65,384 KB
実行使用メモリ 24,032 KB
最終ジャッジ日時 2023-10-13 07:45:11
合計ジャッジ時間 2,720 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 60 ms
19,892 KB
testcase_01 AC 59 ms
19,768 KB
testcase_02 AC 60 ms
21,940 KB
testcase_03 AC 59 ms
21,940 KB
testcase_04 WA -
testcase_05 AC 60 ms
24,032 KB
testcase_06 AC 60 ms
22,004 KB
testcase_07 AC 59 ms
21,832 KB
testcase_08 AC 60 ms
21,944 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)-1] == 1)
                {
                    ans++;
                }
                else
                {
                    if (s[(i*2)-2] % 2 == 0)
                    {
                        ans += 2;
                    }
                    else ans++;
                }
            }
            WriteLine(ans % 2 == 0 ? ":-)" : ":-(");
        }

    }
}
0