結果
問題 | No.48 ロボットの操縦 |
ユーザー | k82b |
提出日時 | 2023-12-08 02:13:07 |
言語 | C (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 112 bytes |
コンパイル時間 | 355 ms |
コンパイル使用メモリ | 27,392 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-27 02:34:43 |
合計ジャッジ時間 | 1,118 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 1 ms
5,248 KB |
testcase_01 | AC | 1 ms
5,376 KB |
testcase_02 | WA | - |
testcase_03 | AC | 1 ms
5,376 KB |
testcase_04 | AC | 1 ms
5,376 KB |
testcase_05 | AC | 1 ms
5,376 KB |
testcase_06 | AC | 1 ms
5,376 KB |
testcase_07 | AC | 1 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 | AC | 1 ms
5,376 KB |
testcase_12 | AC | 1 ms
5,376 KB |
testcase_13 | AC | 1 ms
5,376 KB |
testcase_14 | AC | 1 ms
5,376 KB |
testcase_15 | AC | 1 ms
5,376 KB |
testcase_16 | AC | 1 ms
5,376 KB |
testcase_17 | AC | 1 ms
5,376 KB |
testcase_18 | AC | 1 ms
5,376 KB |
testcase_19 | AC | 1 ms
5,376 KB |
testcase_20 | AC | 1 ms
5,376 KB |
testcase_21 | AC | 0 ms
5,376 KB |
testcase_22 | AC | 1 ms
5,376 KB |
testcase_23 | AC | 1 ms
5,376 KB |
testcase_24 | AC | 1 ms
5,376 KB |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class 1 | a; | ^ main.c:1:1: warning: type defaults to 'int' in declaration of 'a' [-Wimplicit-int] main.c:2:1: warning: return type defaults to 'int' [-Wimplicit-int] 2 | main(x,y,l) | ^~~~ main.c: In function 'main': main.c:2:1: warning: type of 'x' defaults to 'int' [-Wimplicit-int] main.c:2:1: warning: type of 'y' defaults to 'int' [-Wimplicit-int] main.c:2:1: warning: type of 'l' defaults to 'int' [-Wimplicit-int] main.c:4:9: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 4 | scanf("%d%d%d",&x,&y,&l); | ^~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf' +++ |+#include <stdio.h> 1 | a; main.c:4:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch] 4 | scanf("%d%d%d",&x,&y,&l); | ^~~~~ main.c:4:9: note: include '<stdio.h>' or provide a declaration of 'scanf' main.c:5:9: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration] 5 | printf("%d\n",(long)(abs(x)+l-1)/l+(abs(y)+l-1)/l+(x!=0)+(y<0)); | ^~~~~~ main.c:5:9: note: include '<stdio.h>' or provide a declaration of 'printf' main.c:5:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch] main.c:5:9: note: include '<stdio.h>' or provide a declaration of 'printf' main.c:5:30: warning: implicit declaration of function 'abs' [-Wimplicit-function-declaration] 5 | printf("%d\n",(long)(abs(x)+l-1)/l+(abs(y)+l-1)/l+(x!=0)+(y<0)); | ^~~ main.c:1:1: note: include '<stdlib.h>' or provide a declaration of 'abs' +++ |+#include <stdlib.h> 1 | a;
ソースコード
a; main(x,y,l) { scanf("%d%d%d",&x,&y,&l); printf("%d\n",(long)(abs(x)+l-1)/l+(abs(y)+l-1)/l+(x!=0)+(y<0)); }