結果

問題 No.236 鴛鴦茶
ユーザー varrho
提出日時 2019-09-18 11:21:26
言語 Nim
(2.2.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 295 bytes
コンパイル時間 4,475 ms
コンパイル使用メモリ 65,280 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-07 22:23:15
合計ジャッジ時間 5,359 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

import sequtils, strutils
proc printf(str: cstring) {.header: "<stdio.h>", importc: "printf", varargs.}
let
  a: seq[int] = stdin.readline.split.map(parseInt)
  x: float = a[2].float * (1.0 + a[1] / a[0])
  y: float = a[3].float * (1.0 + a[0] / a[1])
  ans: float = min(x, y)
printf("%.8f", ans)
0