結果

問題 No.272 NOT回路
コンテスト
ユーザー umashika
提出日時 2016-01-31 02:49:39
言語 C90
(gcc 12.4.0)
コンパイル:
gcc-12 -O2 -std=c90 -DONLINE_JUDGE -o a.out _filename_ -lm
実行:
./a.out
結果
RE  
実行時間 -
コード長 113 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 95 ms
コンパイル使用メモリ 27,848 KB
最終ジャッジ日時 2026-02-23 20:25:47
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 1
other RE * 11
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function ‘main’:
main.c:4:9: warning: format ‘%d’ expects argument of type ‘int *’, but argument 2 has type ‘int’ [-Wformat=]
    4 | scanf("%d",x);
      |        ~^  ~
      |         |  |
      |         |  int
      |         int *
main.c:4:1: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    4 | scanf("%d",x);
      | ^~~~~~~~~~~~~

ソースコード

diff #
raw source code

#include<stdio.h>
int main(void){
int x;
scanf("%d",x);
if(x==0){printf("1\n");}
else{printf("0\n");}
return 0;
}
0