結果

問題 No.419 直角三角形
ユーザー BantakoBantako
提出日時 2017-07-13 19:20:16
言語 C++11
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 140 bytes
コンパイル時間 403 ms
コンパイル使用メモリ 31,488 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-10-07 18:27:35
合計ジャッジ時間 1,240 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 17 WA * 3
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp:4:1: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type]
    4 | main(){
      | ^~~~
main.cpp: In function ‘int main()’:
main.cpp:6:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    6 |     scanf("%d%d",&A,&B);
      |     ~~~~~^~~~~~~~~~~~~~

ソースコード

diff #

#include<stdio.h>
#include<stdlib.h>
#include<math.h>
main(){
    int A,B;
    scanf("%d%d",&A,&B);
    printf("%f\n",sqrt(abs(A*A-B*B)));
}
0