結果
問題 | No.3047 Riddle of Cards |
ユーザー | selpoAC |
提出日時 | 2019-04-01 21:52:10 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 34 ms / 2,000 ms |
コード長 | 1,255 bytes |
コンパイル時間 | 3,514 ms |
コンパイル使用メモリ | 113,496 KB |
実行使用メモリ | 27,792 KB |
最終ジャッジ日時 | 2024-05-05 04:38:31 |
合計ジャッジ時間 | 4,467 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 32 ms
19,968 KB |
testcase_01 | AC | 31 ms
19,584 KB |
testcase_02 | AC | 33 ms
27,792 KB |
testcase_03 | AC | 33 ms
19,584 KB |
testcase_04 | AC | 32 ms
19,712 KB |
testcase_05 | AC | 34 ms
21,492 KB |
testcase_06 | AC | 34 ms
21,692 KB |
testcase_07 | AC | 34 ms
19,968 KB |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.Linq; using System.Numerics; using System.Text; using System.Threading.Tasks; using static System.Console; using static System.Math; class Z { static void Main() => new K(); } class K { int F => int.Parse(Str); long FL => long.Parse(Str); int[] G => Strs.Select(int.Parse).ToArray(); uint[] GU => Strs.Select(uint.Parse).ToArray(); decimal[] GD => Strs.Select(decimal.Parse).ToArray(); long[] GL => Strs.Select(long.Parse).ToArray(); string Str => ReadLine(); string[] Strs => Str.Split(new char[] { ' ', '\t' }, StringSplitOptions.RemoveEmptyEntries); static T[] ConstantArray<T>(int n, T val) { var a = new T[n]; for (var i = 0; i < n; i++) a[i] = val; return a; } static T[] MakeArray<T>(int n, Func<int, T> f) { var a = new T[n]; for (var i = 0; i < n; i++) a[i] = f(i); return a; } static ulong One(int k) => 1ul << k; static ulong All(int k) => One(k) - 1; static bool Has(ulong s, int k) => (s & One(k)) != 0; const int MOD = 1000000007; public K() { SetOut(new StreamWriter(OpenStandardOutput()) { AutoFlush = false }); Solve(); Out.Flush(); } void Solve() { var I = G; WriteLine(BigInteger.Pow(I[1], I[0])); } }