結果

問題 No.272 NOT回路
ユーザー swdamdr
提出日時 2017-01-24 15:32:34
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 25 ms / 1,000 ms
コード長 281 bytes
コンパイル時間 844 ms
コンパイル使用メモリ 107,496 KB
実行使用メモリ 25,288 KB
最終ジャッジ日時 2024-12-23 07:53:17
合計ジャッジ時間 1,876 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 11
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Linq;

class Program
{
    static void Main(string[] args)
    {
        int x = int.Parse(Console.ReadLine());
        int output = 1;

        if (x == 1)
        {
            output = 0;
        }

        Console.WriteLine(output);
        
    }
}
0