結果
問題 | No.2227 King Kraken's Attack |
ユーザー | buey_t |
提出日時 | 2023-02-25 13:04:45 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 1,397 bytes |
コンパイル時間 | 366 ms |
コンパイル使用メモリ | 82,240 KB |
実行使用メモリ | 89,388 KB |
最終ジャッジ日時 | 2024-10-02 11:37:23 |
合計ジャッジ時間 | 30,910 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 120 ms
84,864 KB |
testcase_01 | AC | 119 ms
85,376 KB |
testcase_02 | AC | 124 ms
84,864 KB |
testcase_03 | AC | 158 ms
89,344 KB |
testcase_04 | AC | 116 ms
84,992 KB |
testcase_05 | AC | 116 ms
85,376 KB |
testcase_06 | AC | 133 ms
88,960 KB |
testcase_07 | AC | 136 ms
88,960 KB |
testcase_08 | AC | 135 ms
88,960 KB |
testcase_09 | AC | 147 ms
89,012 KB |
testcase_10 | AC | 136 ms
88,576 KB |
testcase_11 | AC | 138 ms
89,012 KB |
testcase_12 | AC | 139 ms
88,700 KB |
testcase_13 | AC | 143 ms
89,148 KB |
testcase_14 | AC | 966 ms
89,088 KB |
testcase_15 | AC | 1,049 ms
88,832 KB |
testcase_16 | AC | 929 ms
89,052 KB |
testcase_17 | AC | 716 ms
89,088 KB |
testcase_18 | AC | 1,155 ms
88,832 KB |
testcase_19 | AC | 1,252 ms
88,960 KB |
testcase_20 | AC | 1,165 ms
89,088 KB |
testcase_21 | AC | 1,212 ms
88,932 KB |
testcase_22 | AC | 121 ms
85,320 KB |
testcase_23 | AC | 118 ms
85,172 KB |
testcase_24 | AC | 1,193 ms
88,764 KB |
testcase_25 | AC | 1,231 ms
89,216 KB |
testcase_26 | AC | 1,020 ms
88,820 KB |
testcase_27 | WA | - |
testcase_28 | AC | 1,315 ms
89,216 KB |
testcase_29 | AC | 1,523 ms
89,088 KB |
testcase_30 | AC | 1,441 ms
89,088 KB |
testcase_31 | AC | 1,280 ms
89,088 KB |
testcase_32 | AC | 1,244 ms
89,088 KB |
testcase_33 | AC | 712 ms
89,388 KB |
testcase_34 | AC | 449 ms
89,088 KB |
testcase_35 | AC | 1,161 ms
89,148 KB |
testcase_36 | AC | 538 ms
88,832 KB |
testcase_37 | AC | 260 ms
88,748 KB |
testcase_38 | AC | 361 ms
88,960 KB |
testcase_39 | AC | 340 ms
88,704 KB |
testcase_40 | AC | 257 ms
89,132 KB |
testcase_41 | AC | 968 ms
89,096 KB |
testcase_42 | AC | 273 ms
89,168 KB |
testcase_43 | AC | 302 ms
89,144 KB |
testcase_44 | AC | 814 ms
88,960 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()