結果

問題 No.337 P versus NP
ユーザー YasukeXXX
提出日時 2016-02-09 21:55:02
言語 C90
(gcc 12.3.0)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 70 bytes
コンパイル時間 138 ms
コンパイル使用メモリ 19,712 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-09-21 22:02:10
合計ジャッジ時間 819 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 23
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c:2:1: warning: data definition has no type or storage class
    2 | n;main(p){scanf("%d%d",&n,&p);puts("!="+(!p|n==1));}
      | ^
main.c:2:1: warning: type defaults to ‘int’ in declaration of ‘n’ [-Wimplicit-int]
main.c:2:3: warning: return type defaults to ‘int’ [-Wimplicit-int]
    2 | n;main(p){scanf("%d%d",&n,&p);puts("!="+(!p|n==1));}
      |   ^~~~
main.c: In function ‘main’:
main.c:2:3: warning: type of ‘p’ defaults to ‘int’ [-Wimplicit-int]
main.c:2:11: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    2 | n;main(p){scanf("%d%d",&n,&p);puts("!="+(!p|n==1));}
      |           ^~~~~~~~~~~~~~~~~~~

ソースコード

diff #

#include<stdio.h>
n;main(p){scanf("%d%d",&n,&p);puts("!="+(!p|n==1));}
0