結果
問題 |
No.337 P versus NP
|
ユーザー |
|
提出日時 | 2018-04-18 23:57:09 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 71 bytes |
コンパイル時間 | 127 ms |
コンパイル使用メモリ | 27,520 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-27 04:37:35 |
合計ジャッジ時間 | 912 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 23 |
コンパイルメッセージ
main.c: In function 'main': main.c:1:20: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 1 | int main(){int n,p;scanf("%d%d",&n,&p);puts(p==n*p?"=":"!=");return 0;} | ^~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf' +++ |+#include <stdio.h> 1 | int main(){int n,p;scanf("%d%d",&n,&p);puts(p==n*p?"=":"!=");return 0;} main.c:1:20: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch] 1 | int main(){int n,p;scanf("%d%d",&n,&p);puts(p==n*p?"=":"!=");return 0;} | ^~~~~ main.c:1:20: note: include '<stdio.h>' or provide a declaration of 'scanf' main.c:1:40: warning: implicit declaration of function 'puts' [-Wimplicit-function-declaration] 1 | int main(){int n,p;scanf("%d%d",&n,&p);puts(p==n*p?"=":"!=");return 0;} | ^~~~ main.c:1:40: note: include '<stdio.h>' or provide a declaration of 'puts'
ソースコード
int main(){int n,p;scanf("%d%d",&n,&p);puts(p==n*p?"=":"!=");return 0;}