結果

問題 No.236 鴛鴦茶
ユーザー mkawa2mkawa2
提出日時 2019-12-26 12:41:31
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 526 ms / 2,000 ms
コード長 689 bytes
コンパイル時間 417 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 43,896 KB
最終ジャッジ日時 2024-04-14 10:51:48
合計ジャッジ時間 14,964 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 515 ms
43,396 KB
testcase_01 AC 512 ms
43,768 KB
testcase_02 AC 512 ms
43,396 KB
testcase_03 AC 515 ms
43,652 KB
testcase_04 AC 518 ms
43,644 KB
testcase_05 AC 526 ms
43,780 KB
testcase_06 AC 524 ms
43,524 KB
testcase_07 AC 523 ms
43,644 KB
testcase_08 AC 522 ms
43,392 KB
testcase_09 AC 519 ms
43,776 KB
testcase_10 AC 517 ms
43,524 KB
testcase_11 AC 517 ms
43,396 KB
testcase_12 AC 516 ms
43,644 KB
testcase_13 AC 518 ms
43,392 KB
testcase_14 AC 518 ms
43,524 KB
testcase_15 AC 518 ms
43,656 KB
testcase_16 AC 525 ms
43,688 KB
testcase_17 AC 518 ms
43,520 KB
testcase_18 AC 520 ms
43,652 KB
testcase_19 AC 523 ms
43,776 KB
testcase_20 AC 519 ms
43,632 KB
testcase_21 AC 521 ms
43,784 KB
testcase_22 AC 521 ms
43,776 KB
testcase_23 AC 515 ms
43,516 KB
testcase_24 AC 515 ms
43,896 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from itertools import *
from bisect import *
from math import *
from collections import *
from heapq import *
from random import *
import numpy as np
import sys

sys.setrecursionlimit(10 ** 6)
int1 = lambda x: int(x) - 1
p2D = lambda x: print(*x, sep="\n")
def II(): return int(sys.stdin.readline())
def MI(): return map(int, sys.stdin.readline().split())
def MF(): return map(float, sys.stdin.readline().split())
def LI(): return list(map(int, sys.stdin.readline().split()))
def LF(): return list(map(float, sys.stdin.readline().split()))
def LLI(rows_number): return [LI() for _ in range(rows_number)]

def main():
    a,b,x,y=MI()
    ans=min(x*(a+b)/a,y*(a+b)/b)
    print(ans)
main()
0