結果
問題 |
No.419 直角三角形
|
ユーザー |
![]() |
提出日時 | 2018-08-26 11:41:35 |
言語 | Nim (2.2.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 175 bytes |
コンパイル時間 | 3,637 ms |
コンパイル使用メモリ | 65,968 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-07-01 03:54:00 |
合計ジャッジ時間 | 4,623 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 17 WA * 3 |
ソースコード
import strutils, sequtils, math let tmp = map(split readLine stdin, parseInt) (a, b) = (tmp[0], tmp[1]) r = max(a, b) x = min(a, b) echo sqrt(float(r ^ 2 - x ^ 2))