結果
問題 |
No.892 タピオカ
|
ユーザー |
|
提出日時 | 2020-06-13 17:40:49 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 782 bytes |
コンパイル時間 | 878 ms |
コンパイル使用メモリ | 111,212 KB |
実行使用メモリ | 31,416 KB |
最終ジャッジ日時 | 2024-06-25 15:53:55 |
合計ジャッジ時間 | 3,652 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | TLE * 1 -- * 5 |
コンパイルメッセージ
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; namespace _0892 { class Program { static void Main(string[] args) { var _ = Console.ReadLine().Split(); var a = new int[3]; var b = new int[3]; a[0] = int.Parse(_[0]); b[0] = int.Parse(_[1]); a[1] = int.Parse(_[2]); b[1] = int.Parse(_[3]); a[2] = int.Parse(_[4]); b[2] = int.Parse(_[5]); BigInteger ans = 0; for(var i = 0; i < 3; i++){ BigInteger x = 1; for(var j = 0; j < b[i]; j++){ x *= a[i]; } ans += x; } Console.WriteLine(ans % 2 == 0 ? ":-)" : ":-("); } } }