結果

問題 No.892 タピオカ
ユーザー mossari_aozoramossari_aozora
提出日時 2019-10-01 12:52:41
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 742 bytes
コンパイル時間 2,271 ms
コンパイル使用メモリ 108,332 KB
実行使用メモリ 26,268 KB
最終ジャッジ日時 2024-04-14 08:32:35
合計ジャッジ時間 3,272 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 24 ms
24,412 KB
testcase_01 AC 24 ms
24,356 KB
testcase_02 AC 25 ms
24,284 KB
testcase_03 AC 24 ms
23,896 KB
testcase_04 AC 25 ms
26,264 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 25 ms
24,236 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Collections.Generic;
namespace AtCoDeer
{
    class Program
    {
        static void Main(string[] args)
        {
            var input = Console.ReadLine().Split(' ');
            int a1 = int.Parse(input[0]);
            int b1 = int.Parse(input[1]);
            int a2 = int.Parse(input[2]);
            int b2 = int.Parse(input[3]);
            int a3 = int.Parse(input[4]);
            int b3 = int.Parse(input[5]);

            long sum = (long)(Math.Pow(a1, b1) + Math.Pow(a2, b2) + Math.Pow(a3, b3));
            if (sum % 2 == 1)
            {
                Console.WriteLine(":-(");
            }
            else
            {
                Console.WriteLine(":-)");
            }
        }
    }
}
0