結果
問題 | No.178 美しいWhitespace (1) |
ユーザー | hogeover30 |
提出日時 | 2015-04-08 03:42:47 |
言語 | C90 (gcc 11.4.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 150 bytes |
コンパイル時間 | 405 ms |
コンパイル使用メモリ | 24,088 KB |
実行使用メモリ | 4,384 KB |
最終ジャッジ日時 | 2023-09-17 16:04:21 |
合計ジャッジ時間 | 3,708 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 1 ms
4,380 KB |
testcase_01 | AC | 1 ms
4,376 KB |
testcase_02 | AC | 1 ms
4,380 KB |
testcase_03 | AC | 0 ms
4,380 KB |
testcase_04 | RE | - |
testcase_05 | RE | - |
testcase_06 | RE | - |
testcase_07 | RE | - |
testcase_08 | RE | - |
testcase_09 | RE | - |
testcase_10 | RE | - |
testcase_11 | RE | - |
testcase_12 | RE | - |
testcase_13 | RE | - |
testcase_14 | RE | - |
testcase_15 | RE | - |
testcase_16 | RE | - |
testcase_17 | RE | - |
testcase_18 | RE | - |
testcase_19 | RE | - |
testcase_20 | RE | - |
testcase_21 | RE | - |
testcase_22 | WA | - |
testcase_23 | RE | - |
testcase_24 | RE | - |
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class x[999],i;long long m,t,r;main(a,b){for(gets(x);~scanf("%d%d",&a,&b);x[i++]=t=a+4*b,m=m<t?t:m);for(;i--&~r%2;r+=m-x[i]);i=!printf("%Ld\n",r%2?-1:r/2);} ^ main.c:1:1: warning: type defaults to ‘int’ in declaration of ‘x’ [-Wimplicit-int] main.c:1:8: warning: type defaults to ‘int’ in declaration of ‘i’ [-Wimplicit-int] x[999],i;long long m,t,r;main(a,b){for(gets(x);~scanf("%d%d",&a,&b);x[i++]=t=a+4*b,m=m<t?t:m);for(;i--&~r%2;r+=m-x[i]);i=!printf("%Ld\n",r%2?-1:r/2);} ^ main.c:1:26: warning: return type defaults to ‘int’ [-Wimplicit-int] x[999],i;long long m,t,r;main(a,b){for(gets(x);~scanf("%d%d",&a,&b);x[i++]=t=a+4*b,m=m<t?t:m);for(;i--&~r%2;r+=m-x[i]);i=!printf("%Ld\n",r%2?-1:r/2);} ^~~~ main.c: In function ‘main’: main.c:1:26: warning: type of ‘a’ defaults to ‘int’ [-Wimplicit-int] main.c:1:26: warning: type of ‘b’ defaults to ‘int’ [-Wimplicit-int] main.c:1:40: warning: implicit declaration of function ‘gets’ [-Wimplicit-function-declaration] x[999],i;long long m,t,r;main(a,b){for(gets(x);~scanf("%d%d",&a,&b);x[i++]=t=a+4*b,m=m<t?t:m);for(;i--&~r%2;r+=m-x[i]);i=!printf("%Ld\n",r%2?-1:r/2);} ^~~~ main.c:1:49: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration] x[999],i;long long m,t,r;main(a,b){for(gets(x);~scanf("%d%d",&a,&b);x[i++]=t=a+4*b,m=m<t?t:m);for(;i--&~r%2;r+=m-x[i]);i=!printf("%Ld\n",r%2?-1:r/2);} ^~~~~ main.c:1:49: warning: incompatible implicit declaration of built-in function ‘scanf’ main.c:1:49: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ +#include <stdio.h> x[999],i;long long m,t,r;main(a,b){for(gets(x);~scanf("%d%d",&a,&b);x[i++]=t=a+4*b,m=m<t?t:m);for(;i--&~r%2;r+=m-x[i]);i=!printf("%Ld\n",r%2?-1:r/2);}
ソースコード
x[999],i;long long m,t,r;main(a,b){for(gets(x);~scanf("%d%d",&a,&b);x[i++]=t=a+4*b,m=m<t?t:m);for(;i--&~r%2;r+=m-x[i]);i=!printf("%Ld\n",r%2?-1:r/2);}