結果
| 問題 | No.337 P versus NP |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-04-18 23:54:00 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 77 bytes |
| 記録 | |
| コンパイル時間 | 172 ms |
| コンパイル使用メモリ | 27,264 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-27 04:37:29 |
| 合計ジャッジ時間 | 870 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);p==n*p?puts("="):puts("!=");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);p==n*p?puts("="):puts("!=");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);p==n*p?puts("="):puts("!=");return 0;}
| ^~~~~
main.c:1:20: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:47: warning: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
1 | int main(){int n,p;scanf("%d%d",&n,&p);p==n*p?puts("="):puts("!=");return 0;}
| ^~~~
main.c:1:47: note: include '<stdio.h>' or provide a declaration of 'puts'
ソースコード
int main(){int n,p;scanf("%d%d",&n,&p);p==n*p?puts("="):puts("!=");return 0;}