結果
問題 | No.419 直角三角形 |
ユーザー | kotatsugame |
提出日時 | 2017-07-15 06:18:22 |
言語 | C (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 70 bytes |
コンパイル時間 | 245 ms |
コンパイル使用メモリ | 28,160 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-08 01:22:00 |
合計ジャッジ時間 | 1,165 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 1 ms
6,820 KB |
testcase_01 | AC | 1 ms
6,816 KB |
testcase_02 | AC | 1 ms
6,820 KB |
testcase_03 | AC | 1 ms
6,816 KB |
testcase_04 | AC | 1 ms
6,820 KB |
testcase_05 | AC | 1 ms
6,820 KB |
testcase_06 | AC | 1 ms
6,816 KB |
testcase_07 | AC | 1 ms
6,816 KB |
testcase_08 | WA | - |
testcase_09 | AC | 1 ms
6,816 KB |
testcase_10 | AC | 1 ms
6,816 KB |
testcase_11 | AC | 1 ms
6,816 KB |
testcase_12 | WA | - |
testcase_13 | AC | 1 ms
6,820 KB |
testcase_14 | AC | 1 ms
6,816 KB |
testcase_15 | AC | 1 ms
6,816 KB |
testcase_16 | AC | 1 ms
6,816 KB |
testcase_17 | AC | 1 ms
6,820 KB |
testcase_18 | AC | 1 ms
6,816 KB |
testcase_19 | AC | 1 ms
6,816 KB |
testcase_20 | AC | 1 ms
6,820 KB |
testcase_21 | AC | 1 ms
6,820 KB |
testcase_22 | WA | - |
コンパイルメッセージ
main.c:1:1: warning: return type defaults to 'int' [-Wimplicit-int] 1 | main(a,b){printf("%f",sqrt(a<b?b*b-a*a:a*a-b*b),scanf("%d%d",&a,&b));} | ^~~~ main.c: In function 'main': main.c:1:1: warning: type of 'a' defaults to 'int' [-Wimplicit-int] main.c:1:1: warning: type of 'b' defaults to 'int' [-Wimplicit-int] main.c:1:11: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration] 1 | main(a,b){printf("%f",sqrt(a<b?b*b-a*a:a*a-b*b),scanf("%d%d",&a,&b));} | ^~~~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf' +++ |+#include <stdio.h> 1 | main(a,b){printf("%f",sqrt(a<b?b*b-a*a:a*a-b*b),scanf("%d%d",&a,&b));} main.c:1:11: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch] 1 | main(a,b){printf("%f",sqrt(a<b?b*b-a*a:a*a-b*b),scanf("%d%d",&a,&b));} | ^~~~~~ main.c:1:11: note: include '<stdio.h>' or provide a declaration of 'printf' main.c:1:23: warning: implicit declaration of function 'sqrt' [-Wimplicit-function-declaration] 1 | main(a,b){printf("%f",sqrt(a<b?b*b-a*a:a*a-b*b),scanf("%d%d",&a,&b));} | ^~~~ main.c:1:1: note: include '<math.h>' or provide a declaration of 'sqrt' +++ |+#include <math.h> 1 | main(a,b){printf("%f",sqrt(a<b?b*b-a*a:a*a-b*b),scanf("%d%d",&a,&b));} main.c:1:23: warning: incompatible implicit declaration of built-in function 'sqrt' [-Wbuiltin-declaration-mismatch] 1 | main(a,b){printf("%f",sqrt(a<b?b*b-a*a:a*a-b*b),scanf("%d%d",&a,&b));} | ^~~~ main.c:1:23: note: include '<math.h>' or provide a declaration of 'sqrt' main.c:1:49: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 1 | main(a,b){printf("%f",sqrt(a<b?b*b-a*a:a*a-b*b),scanf("%d%d",&a,&b));} | ^~~~~ main.c:1:49: note: include '<stdio.h>' or provide a declaration o
ソースコード
main(a,b){printf("%f",sqrt(a<b?b*b-a*a:a*a-b*b),scanf("%d%d",&a,&b));}