結果
問題 | No.627 ランダムウォークの軌跡 |
ユーザー | 👑 testestest |
提出日時 | 2018-01-21 16:31:13 |
言語 | C (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 75 bytes |
コンパイル時間 | 170 ms |
コンパイル使用メモリ | 28,160 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-07 15:11:26 |
合計ジャッジ時間 | 1,097 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 1 ms
5,248 KB |
testcase_01 | WA | - |
testcase_02 | AC | 1 ms
5,376 KB |
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 | WA | - |
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 | WA | - |
testcase_14 | AC | 1 ms
5,376 KB |
testcase_15 | WA | - |
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 | WA | - |
testcase_20 | AC | 1 ms
5,376 KB |
testcase_21 | AC | 1 ms
5,376 KB |
testcase_22 | AC | 1 ms
5,376 KB |
testcase_23 | WA | - |
testcase_24 | AC | 1 ms
5,376 KB |
testcase_25 | AC | 1 ms
5,376 KB |
testcase_26 | AC | 1 ms
5,376 KB |
testcase_27 | WA | - |
testcase_28 | AC | 1 ms
5,376 KB |
testcase_29 | WA | - |
testcase_30 | WA | - |
testcase_31 | AC | 1 ms
5,376 KB |
testcase_32 | WA | - |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class 1 | s,a,b;main(i){for(;~scanf("%d",&b);--i?s|=abs(a-b)-1,a=b:0);puts(L"TF"+s);} | ^ main.c:1:1: warning: type defaults to 'int' in declaration of 's' [-Wimplicit-int] main.c:1:3: warning: type defaults to 'int' in declaration of 'a' [-Wimplicit-int] 1 | s,a,b;main(i){for(;~scanf("%d",&b);--i?s|=abs(a-b)-1,a=b:0);puts(L"TF"+s);} | ^ main.c:1:5: warning: type defaults to 'int' in declaration of 'b' [-Wimplicit-int] 1 | s,a,b;main(i){for(;~scanf("%d",&b);--i?s|=abs(a-b)-1,a=b:0);puts(L"TF"+s);} | ^ main.c:1:7: warning: return type defaults to 'int' [-Wimplicit-int] 1 | s,a,b;main(i){for(;~scanf("%d",&b);--i?s|=abs(a-b)-1,a=b:0);puts(L"TF"+s);} | ^~~~ main.c: In function 'main': main.c:1:7: warning: type of 'i' defaults to 'int' [-Wimplicit-int] main.c:1:21: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 1 | s,a,b;main(i){for(;~scanf("%d",&b);--i?s|=abs(a-b)-1,a=b:0);puts(L"TF"+s);} | ^~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf' +++ |+#include <stdio.h> 1 | s,a,b;main(i){for(;~scanf("%d",&b);--i?s|=abs(a-b)-1,a=b:0);puts(L"TF"+s);} main.c:1:21: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch] 1 | s,a,b;main(i){for(;~scanf("%d",&b);--i?s|=abs(a-b)-1,a=b:0);puts(L"TF"+s);} | ^~~~~ main.c:1:21: note: include '<stdio.h>' or provide a declaration of 'scanf' main.c:1:43: warning: implicit declaration of function 'abs' [-Wimplicit-function-declaration] 1 | s,a,b;main(i){for(;~scanf("%d",&b);--i?s|=abs(a-b)-1,a=b:0);puts(L"TF"+s);} | ^~~ main.c:1:1: note: include '<stdlib.h>' or provide a declaration of 'abs' +++ |+#include <stdlib.h> 1 | s,a,b;main(i){for(;~scanf("%d",&b);--i?s|=abs(a-b)-1,a=b:0);puts(L"TF"+s);} m
ソースコード
s,a,b;main(i){for(;~scanf("%d",&b);--i?s|=abs(a-b)-1,a=b:0);puts(L"TF"+s);}