結果

問題 No.892 タピオカ
ユーザー mossari_aozoramossari_aozora
提出日時 2019-10-01 12:52:41
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 742 bytes
コンパイル時間 2,067 ms
コンパイル使用メモリ 110,712 KB
実行使用メモリ 26,528 KB
最終ジャッジ日時 2024-10-03 05:40:37
合計ジャッジ時間 2,710 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 3 WA * 3
権限があれば一括ダウンロードができます
コンパイルメッセージ
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