結果
問題 | No.8001 確率論ってこういうものですよね |
ユーザー | 👑 testestest |
提出日時 | 2016-03-05 22:09:11 |
言語 | C90 (gcc 11.4.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 80 bytes |
コンパイル時間 | 393 ms |
コンパイル使用メモリ | 20,480 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-09-24 14:31:27 |
合計ジャッジ時間 | 1,305 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | AC | 0 ms
6,940 KB |
testcase_02 | WA | - |
testcase_03 | AC | 1 ms
6,940 KB |
testcase_04 | AC | 0 ms
6,944 KB |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
コンパイルメッセージ
main.c:1:11: warning: data definition has no type or storage class 1 | float x,y;a;main(){a=scanf("%f%f",&x,&y)>printf("%f %f",x>1-y?x:1-y,x>y?x-y:0);} | ^ main.c:1:11: warning: type defaults to ‘int’ in declaration of ‘a’ [-Wimplicit-int] main.c:1:13: warning: return type defaults to ‘int’ [-Wimplicit-int] 1 | float x,y;a;main(){a=scanf("%f%f",&x,&y)>printf("%f %f",x>1-y?x:1-y,x>y?x-y:0);} | ^~~~ main.c: In function ‘main’: main.c:1:22: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration] 1 | float x,y;a;main(){a=scanf("%f%f",&x,&y)>printf("%f %f",x>1-y?x:1-y,x>y?x-y:0);} | ^~~~~ main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ +++ |+#include <stdio.h> 1 | float x,y;a;main(){a=scanf("%f%f",&x,&y)>printf("%f %f",x>1-y?x:1-y,x>y?x-y:0);} main.c:1:22: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch] 1 | float x,y;a;main(){a=scanf("%f%f",&x,&y)>printf("%f %f",x>1-y?x:1-y,x>y?x-y:0);} | ^~~~~ main.c:1:22: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’ main.c:1:42: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration] 1 | float x,y;a;main(){a=scanf("%f%f",&x,&y)>printf("%f %f",x>1-y?x:1-y,x>y?x-y:0);} | ^~~~~~ 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’
ソースコード
float x,y;a;main(){a=scanf("%f%f",&x,&y)>printf("%f %f",x>1-y?x:1-y,x>y?x-y:0);}