結果
問題 | No.272 NOT回路 |
ユーザー | No |
提出日時 | 2015-09-03 16:43:37 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 51 ms / 1,000 ms |
コード長 | 780 bytes |
コンパイル時間 | 5,096 ms |
コンパイル使用メモリ | 103,268 KB |
実行使用メモリ | 22,628 KB |
最終ジャッジ日時 | 2023-09-26 02:35:16 |
合計ジャッジ時間 | 4,196 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge12 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 47 ms
20,556 KB |
testcase_01 | AC | 49 ms
20,528 KB |
testcase_02 | AC | 48 ms
22,492 KB |
testcase_03 | AC | 48 ms
20,492 KB |
testcase_04 | AC | 49 ms
22,568 KB |
testcase_05 | AC | 50 ms
20,492 KB |
testcase_06 | AC | 49 ms
20,584 KB |
testcase_07 | AC | 51 ms
22,628 KB |
testcase_08 | AC | 48 ms
20,604 KB |
testcase_09 | AC | 48 ms
18,484 KB |
testcase_10 | AC | 48 ms
20,416 KB |
testcase_11 | AC | 48 ms
20,440 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.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace foryuki { class Program { static void Main(string[] args) { if (Console.ReadLine().Equals("0")) Console.WriteLine("1"); else Console.WriteLine("0"); } //------------------------------------------------------------- static int[] ConvertStringArrayToIntArray(string[] array) { return Array.ConvertAll(array, str => int.Parse(str)); } static List<int> ConvertStringArrayToIntList(string[] str) { var list = new List<int>(); foreach (var c in str) list.Add(int.Parse(c)); return list; } } }