結果

問題 No.23 技の選択
ユーザー testestesttestestest
提出日時 2015-08-13 03:29:37
言語 C90
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 113 bytes
コンパイル時間 1,199 ms
コンパイル使用メモリ 23,948 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-09-25 11:22:18
合計ジャッジ時間 2,716 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 1 ms
4,380 KB
testcase_02 AC 1 ms
4,376 KB
testcase_03 AC 0 ms
4,376 KB
testcase_04 AC 0 ms
4,380 KB
testcase_05 AC 0 ms
4,376 KB
testcase_06 AC 1 ms
4,376 KB
testcase_07 AC 1 ms
4,376 KB
testcase_08 AC 1 ms
4,380 KB
testcase_09 AC 1 ms
4,380 KB
testcase_10 WA -
testcase_11 AC 0 ms
4,380 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 0 ms
4,376 KB
testcase_23 WA -
testcase_24 WA -
testcase_25 AC 1 ms
4,380 KB
testcase_26 AC 0 ms
4,376 KB
testcase_27 AC 0 ms
4,376 KB
testcase_28 AC 0 ms
4,380 KB
testcase_29 AC 0 ms
4,376 KB
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c:1:1: warning: data definition has no type or storage class
 a,b,c,n=1e4,i;main(t){scanf("%d%d%d",&a,&b,&c);for(a--;a>-2;n=n<t?n:t,a-=b)t=a/c*3+3+i++*2;n=!printf("%f",n/2.);}
 ^
main.c:1:1: warning: type defaults to ‘int’ in declaration of ‘a’ [-Wimplicit-int]
main.c:1:3: warning: type defaults to ‘int’ in declaration of ‘b’ [-Wimplicit-int]
 a,b,c,n=1e4,i;main(t){scanf("%d%d%d",&a,&b,&c);for(a--;a>-2;n=n<t?n:t,a-=b)t=a/c*3+3+i++*2;n=!printf("%f",n/2.);}
   ^
main.c:1:5: warning: type defaults to ‘int’ in declaration of ‘c’ [-Wimplicit-int]
 a,b,c,n=1e4,i;main(t){scanf("%d%d%d",&a,&b,&c);for(a--;a>-2;n=n<t?n:t,a-=b)t=a/c*3+3+i++*2;n=!printf("%f",n/2.);}
     ^
main.c:1:7: warning: type defaults to ‘int’ in declaration of ‘n’ [-Wimplicit-int]
 a,b,c,n=1e4,i;main(t){scanf("%d%d%d",&a,&b,&c);for(a--;a>-2;n=n<t?n:t,a-=b)t=a/c*3+3+i++*2;n=!printf("%f",n/2.);}
       ^
main.c:1:13: warning: type defaults to ‘int’ in declaration of ‘i’ [-Wimplicit-int]
 a,b,c,n=1e4,i;main(t){scanf("%d%d%d",&a,&b,&c);for(a--;a>-2;n=n<t?n:t,a-=b)t=a/c*3+3+i++*2;n=!printf("%f",n/2.);}
             ^
main.c:1:15: warning: return type defaults to ‘int’ [-Wimplicit-int]
 a,b,c,n=1e4,i;main(t){scanf("%d%d%d",&a,&b,&c);for(a--;a>-2;n=n<t?n:t,a-=b)t=a/c*3+3+i++*2;n=!printf("%f",n/2.);}
               ^~~~
main.c: In function ‘main’:
main.c:1:15: warning: type of ‘t’ defaults to ‘int’ [-Wimplicit-int]
main.c:1:23: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration]
 a,b,c,n=1e4,i;main(t){scanf("%d%d%d",&a,&b,&c);for(a--;a>-2;n=n<t?n:t,a-=b)t=a/c*3+3+i++*2;n=!printf("%f",n/2.);}
                       ^~~~~
main.c:1:23: warning: incompatible implicit declaration of built-in function ‘scanf’
main.c:1:23: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
+#include <stdio.h>
 a,b,c,n=1e4,i;main(t){scanf("%d%d%d",&a,&b,&c);for(a--;a>-2;n=n<t?n:t,a-=b)t=a/c*3+3+i++*2;n=!printf("%f",n/2

ソースコード

diff #

a,b,c,n=1e4,i;main(t){scanf("%d%d%d",&a,&b,&c);for(a--;a>-2;n=n<t?n:t,a-=b)t=a/c*3+3+i++*2;n=!printf("%f",n/2.);}
0