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