結果
問題 | No.2227 King Kraken's Attack |
ユーザー | buey_t |
提出日時 | 2023-02-25 13:01:19 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 1,402 bytes |
コンパイル時間 | 332 ms |
コンパイル使用メモリ | 82,380 KB |
実行使用メモリ | 89,728 KB |
最終ジャッジ日時 | 2024-10-02 11:35:22 |
合計ジャッジ時間 | 36,081 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 137 ms
84,992 KB |
testcase_01 | AC | 125 ms
85,376 KB |
testcase_02 | AC | 129 ms
85,120 KB |
testcase_03 | AC | 151 ms
89,088 KB |
testcase_04 | AC | 124 ms
85,248 KB |
testcase_05 | AC | 126 ms
85,120 KB |
testcase_06 | AC | 142 ms
89,088 KB |
testcase_07 | AC | 146 ms
89,216 KB |
testcase_08 | AC | 140 ms
89,352 KB |
testcase_09 | AC | 146 ms
89,088 KB |
testcase_10 | AC | 144 ms
89,472 KB |
testcase_11 | AC | 142 ms
89,348 KB |
testcase_12 | AC | 146 ms
89,164 KB |
testcase_13 | AC | 149 ms
89,268 KB |
testcase_14 | AC | 369 ms
89,088 KB |
testcase_15 | AC | 1,052 ms
89,088 KB |
testcase_16 | AC | 366 ms
89,464 KB |
testcase_17 | AC | 1,172 ms
89,216 KB |
testcase_18 | AC | 1,365 ms
89,548 KB |
testcase_19 | AC | 1,519 ms
89,344 KB |
testcase_20 | AC | 1,522 ms
89,284 KB |
testcase_21 | AC | 1,693 ms
89,472 KB |
testcase_22 | AC | 125 ms
85,324 KB |
testcase_23 | AC | 124 ms
85,120 KB |
testcase_24 | AC | 1,437 ms
89,580 KB |
testcase_25 | TLE | - |
testcase_26 | AC | 378 ms
89,196 KB |
testcase_27 | AC | 1,938 ms
89,344 KB |
testcase_28 | AC | 1,789 ms
89,336 KB |
testcase_29 | AC | 1,649 ms
89,344 KB |
testcase_30 | AC | 1,757 ms
89,728 KB |
testcase_31 | AC | 1,572 ms
89,216 KB |
testcase_32 | AC | 1,503 ms
89,412 KB |
testcase_33 | AC | 967 ms
89,216 KB |
testcase_34 | AC | 583 ms
89,528 KB |
testcase_35 | AC | 1,388 ms
89,472 KB |
testcase_36 | AC | 732 ms
89,472 KB |
testcase_37 | AC | 347 ms
89,344 KB |
testcase_38 | AC | 506 ms
89,600 KB |
testcase_39 | AC | 495 ms
89,216 KB |
testcase_40 | AC | 361 ms
89,344 KB |
testcase_41 | AC | 1,374 ms
89,400 KB |
testcase_42 | AC | 368 ms
89,332 KB |
testcase_43 | AC | 406 ms
89,600 KB |
testcase_44 | AC | 1,137 ms
89,344 KB |
testcase_45 | WA | - |
ソースコード
def main(): try: import pypyjit pypyjit.set_param('max_unroll_recursion=-1') except: pass try: import sys sys.setrecursionlimit(10**7) except: pass from math import sqrt,sin,cos,tan,ceil,radians,floor,gcd,exp,log,log10,log2,factorial,fsum import heapq from bisect import bisect_left, bisect_right import copy from collections import deque,Counter,defaultdict from itertools import permutations,combinations from decimal import Decimal,ROUND_HALF_UP #tmp = Decimal(mid).quantize(Decimal('0'), rounding=ROUND_HALF_UP) from functools import lru_cache, reduce #@lru_cache(maxsize=None) from operator import add,sub,mul,xor,and_,or_ INF = 10**18 mod1 = 10**9+7 mod2 = 998244353 #DecimalならPython H,W,La,Lb,Ka,Kb = map(int, input().split()) ans = INF for i in range(H+1): l = 0 h = 10**12 for _ in range(50): m = (l+h)//2 if min(i*La,H)*min(m*Lb,W) + i*Ka + m*Kb >= H*W: h = m else: l = m ans = min(ans, h+i) print(ans) if __name__ == '__main__': main()