結果
問題 | No.2224 UFO Game |
ユーザー | 👑 kakel-san |
提出日時 | 2023-02-24 21:25:03 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 57 ms / 2,000 ms |
コード長 | 651 bytes |
コンパイル時間 | 1,234 ms |
コンパイル使用メモリ | 62,308 KB |
実行使用メモリ | 22,792 KB |
最終ジャッジ日時 | 2023-10-11 05:46:28 |
合計ジャッジ時間 | 2,784 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 55 ms
18,588 KB |
testcase_01 | AC | 57 ms
22,652 KB |
testcase_02 | AC | 55 ms
20,660 KB |
testcase_03 | AC | 56 ms
20,744 KB |
testcase_04 | AC | 56 ms
22,792 KB |
testcase_05 | AC | 56 ms
20,652 KB |
testcase_06 | AC | 56 ms
18,668 KB |
testcase_07 | AC | 55 ms
20,684 KB |
testcase_08 | AC | 55 ms
22,692 KB |
testcase_09 | AC | 57 ms
22,680 KB |
testcase_10 | AC | 56 ms
22,684 KB |
testcase_11 | AC | 56 ms
22,708 KB |
testcase_12 | AC | 55 ms
20,684 KB |
testcase_13 | AC | 55 ms
20,724 KB |
ソースコード
using System; using static System.Console; using System.Linq; using System.Collections.Generic; class Program { static int NN => int.Parse(ReadLine()); static int[] NList => ReadLine().Split().Select(int.Parse).ToArray(); static int[][] NArr(long n) => Enumerable.Repeat(0, (int)n).Select(_ => NList).ToArray(); public static void Main() { Solve(); } static void Solve() { var s = ReadLine(); if (s[0] == 'x') { WriteLine((1L << 32) - int.Parse(s.Substring(1))); } else { WriteLine(int.Parse(s)); } } }