結果
問題 | No.477 MVP |
ユーザー | %20 |
提出日時 | 2017-01-30 02:45:45 |
言語 | C90 (gcc 11.4.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 62 bytes |
コンパイル時間 | 202 ms |
コンパイル使用メモリ | 19,456 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-06 09:33:54 |
合計ジャッジ時間 | 689 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 0 ms
5,248 KB |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | AC | 0 ms
5,376 KB |
testcase_07 | AC | 0 ms
5,376 KB |
testcase_08 | AC | 1 ms
5,376 KB |
testcase_09 | AC | 1 ms
5,376 KB |
testcase_10 | AC | 1 ms
5,376 KB |
testcase_11 | WA | - |
コンパイルメッセージ
main.c:1:10: warning: return type defaults to ‘int’ [-Wimplicit-int] 1 | long n,k;main(){scanf("%d%d",&n,&k);n=!printf("%ld",n/++k+1);} | ^~~~ main.c: In function ‘main’: main.c:1:17: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration] 1 | long n,k;main(){scanf("%d%d",&n,&k);n=!printf("%ld",n/++k+1);} | ^~~~~ main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ +++ |+#include <stdio.h> 1 | long n,k;main(){scanf("%d%d",&n,&k);n=!printf("%ld",n/++k+1);} main.c:1:17: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch] 1 | long n,k;main(){scanf("%d%d",&n,&k);n=!printf("%ld",n/++k+1);} | ^~~~~ main.c:1:17: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ main.c:1:25: warning: format ‘%d’ expects argument of type ‘int *’, but argument 2 has type ‘long int *’ [-Wformat=] 1 | long n,k;main(){scanf("%d%d",&n,&k);n=!printf("%ld",n/++k+1);} | ~^ ~~ | | | | | long int * | int * | %ld main.c:1:27: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘long int *’ [-Wformat=] 1 | long n,k;main(){scanf("%d%d",&n,&k);n=!printf("%ld",n/++k+1);} | ~^ ~~ | | | | int * long int * | %ld main.c:1:40: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration] 1 | long n,k;main(){scanf("%d%d",&n,&k);n=!printf("%ld",n/++k+1);} | ^~~~~~ main.c:1:40: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’ main.c:1:40: warning: incompat
ソースコード
long n,k;main(){scanf("%d%d",&n,&k);n=!printf("%ld",n/++k+1);}