結果

問題 No.272 NOT回路
ユーザー kamonegi2236kamonegi2236
提出日時 2015-09-12 12:48:57
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 51 ms / 1,000 ms
コード長 399 bytes
コンパイル時間 2,222 ms
コンパイル使用メモリ 104,904 KB
実行使用メモリ 20,640 KB
最終ジャッジ日時 2023-09-26 11:38:26
合計ジャッジ時間 3,662 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 51 ms
20,640 KB
testcase_01 AC 50 ms
20,484 KB
testcase_02 AC 50 ms
20,592 KB
testcase_03 AC 50 ms
20,408 KB
testcase_04 AC 50 ms
20,408 KB
testcase_05 AC 49 ms
18,300 KB
testcase_06 AC 49 ms
20,336 KB
testcase_07 AC 50 ms
20,380 KB
testcase_08 AC 50 ms
20,372 KB
testcase_09 AC 49 ms
20,392 KB
testcase_10 AC 49 ms
20,488 KB
testcase_11 AC 50 ms
20,536 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

namespace No272
{
    class not
    {
        static void Main()
        {
            string str = Console.ReadLine();
            switch (str)
            {
                case "1":
                    Console.WriteLine("0");
                    break;
                case "0":
                    Console.WriteLine("1");
                    break;
            }
        }
    }
}
0