結果
問題 | No.2227 King Kraken's Attack |
ユーザー | buey_t |
提出日時 | 2023-02-25 13:08:05 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 1,397 bytes |
コンパイル時間 | 371 ms |
コンパイル使用メモリ | 81,792 KB |
実行使用メモリ | 89,320 KB |
最終ジャッジ日時 | 2024-10-02 11:36:13 |
合計ジャッジ時間 | 32,598 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 124 ms
85,376 KB |
testcase_01 | AC | 125 ms
85,376 KB |
testcase_02 | AC | 130 ms
85,376 KB |
testcase_03 | AC | 147 ms
89,088 KB |
testcase_04 | AC | 125 ms
85,376 KB |
testcase_05 | AC | 126 ms
84,864 KB |
testcase_06 | AC | 142 ms
88,900 KB |
testcase_07 | AC | 143 ms
89,216 KB |
testcase_08 | AC | 142 ms
89,088 KB |
testcase_09 | AC | 146 ms
88,960 KB |
testcase_10 | AC | 143 ms
88,832 KB |
testcase_11 | AC | 143 ms
88,960 KB |
testcase_12 | AC | 147 ms
89,088 KB |
testcase_13 | AC | 149 ms
88,936 KB |
testcase_14 | AC | 1,052 ms
89,088 KB |
testcase_15 | AC | 1,173 ms
88,956 KB |
testcase_16 | AC | 1,066 ms
89,320 KB |
testcase_17 | AC | 799 ms
88,960 KB |
testcase_18 | AC | 1,312 ms
88,832 KB |
testcase_19 | AC | 1,339 ms
89,216 KB |
testcase_20 | AC | 1,189 ms
88,868 KB |
testcase_21 | AC | 1,238 ms
89,088 KB |
testcase_22 | AC | 125 ms
85,096 KB |
testcase_23 | AC | 125 ms
85,376 KB |
testcase_24 | AC | 1,231 ms
89,216 KB |
testcase_25 | AC | 1,309 ms
89,088 KB |
testcase_26 | AC | 1,051 ms
89,088 KB |
testcase_27 | WA | - |
testcase_28 | AC | 1,323 ms
88,932 KB |
testcase_29 | AC | 1,545 ms
88,960 KB |
testcase_30 | AC | 1,478 ms
89,024 KB |
testcase_31 | AC | 1,335 ms
89,088 KB |
testcase_32 | AC | 1,230 ms
88,704 KB |
testcase_33 | AC | 799 ms
88,960 KB |
testcase_34 | AC | 495 ms
88,832 KB |
testcase_35 | AC | 1,272 ms
89,216 KB |
testcase_36 | AC | 607 ms
89,088 KB |
testcase_37 | AC | 295 ms
88,576 KB |
testcase_38 | AC | 410 ms
88,928 KB |
testcase_39 | AC | 394 ms
89,236 KB |
testcase_40 | AC | 292 ms
89,088 KB |
testcase_41 | AC | 1,101 ms
89,088 KB |
testcase_42 | AC | 308 ms
88,832 KB |
testcase_43 | AC | 353 ms
89,216 KB |
testcase_44 | AC | 917 ms
89,148 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 while h-l > 1: 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()