結果

問題 No.272 NOT回路
ユーザー ABC10946
提出日時 2015-09-08 17:14:00
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 181 bytes
コンパイル時間 355 ms
コンパイル使用メモリ 53,844 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-19 04:58:46
合計ジャッジ時間 831 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>

using namespace std;

//0 => 1 and 1 => 0

int main()
{
  int x;
  cin >> x;
  if(x == 0)
  {
    cout << "1" << endl;
  }else{
    cout << "0" << endl;
  }

}
0