結果

問題 No.419 直角三角形
ユーザー te-sh
提出日時 2016-09-09 22:29:31
言語 D
(dmd 2.109.1)
結果
WA  
実行時間 -
コード長 359 bytes
コンパイル時間 2,400 ms
コンパイル使用メモリ 163,296 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-12 04:15:11
合計ジャッジ時間 3,459 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 17 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

import std.algorithm, std.array, std.container, std.range, std.bitmanip;
import std.numeric, std.math, std.bigint, std.random, core.bitop;
import std.string, std.regex, std.conv, std.stdio, std.typecons;

void main()
{
  auto rd = readln.split.map!(to!real);
  auto a = rd[0], b = rd[1];
  if (a < b) swap(a, b);
  writefln("%.6f", (a ^^ 2 - b ^^ 2).sqrt);
}
0