結果

問題 No.1460 Max of Min
ユーザー googol_S0googol_S0
提出日時 2021-03-31 21:43:17
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 278 bytes
コンパイル時間 283 ms
コンパイル使用メモリ 87,212 KB
実行使用メモリ 81,496 KB
最終ジャッジ日時 2023-08-22 00:26:05
合計ジャッジ時間 38,856 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 102 ms
80,424 KB
testcase_01 AC 95 ms
80,040 KB
testcase_02 AC 103 ms
80,684 KB
testcase_03 AC 307 ms
80,908 KB
testcase_04 AC 306 ms
80,744 KB
testcase_05 AC 95 ms
80,104 KB
testcase_06 AC 621 ms
81,124 KB
testcase_07 AC 617 ms
81,224 KB
testcase_08 WA -
testcase_09 AC 101 ms
80,800 KB
testcase_10 AC 556 ms
81,408 KB
testcase_11 WA -
testcase_12 AC 358 ms
80,664 KB
testcase_13 AC 269 ms
81,124 KB
testcase_14 AC 200 ms
80,740 KB
testcase_15 WA -
testcase_16 AC 265 ms
81,244 KB
testcase_17 AC 222 ms
81,080 KB
testcase_18 WA -
testcase_19 AC 217 ms
81,060 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 221 ms
80,744 KB
testcase_23 AC 114 ms
80,872 KB
testcase_24 AC 498 ms
81,072 KB
testcase_25 AC 150 ms
80,920 KB
testcase_26 WA -
testcase_27 AC 323 ms
80,736 KB
testcase_28 AC 137 ms
80,724 KB
testcase_29 WA -
testcase_30 AC 271 ms
80,892 KB
testcase_31 AC 463 ms
81,248 KB
testcase_32 AC 563 ms
80,880 KB
testcase_33 AC 374 ms
81,048 KB
testcase_34 AC 212 ms
81,004 KB
testcase_35 AC 297 ms
80,332 KB
testcase_36 AC 229 ms
80,420 KB
testcase_37 AC 506 ms
81,156 KB
testcase_38 AC 263 ms
80,792 KB
testcase_39 AC 386 ms
81,060 KB
testcase_40 AC 184 ms
80,560 KB
testcase_41 AC 173 ms
80,944 KB
testcase_42 AC 151 ms
80,744 KB
testcase_43 AC 222 ms
80,784 KB
testcase_44 AC 253 ms
81,192 KB
testcase_45 AC 188 ms
80,732 KB
testcase_46 AC 413 ms
81,104 KB
testcase_47 WA -
testcase_48 WA -
testcase_49 AC 245 ms
80,748 KB
testcase_50 AC 136 ms
80,396 KB
testcase_51 WA -
testcase_52 AC 163 ms
80,796 KB
testcase_53 AC 237 ms
80,788 KB
testcase_54 AC 283 ms
80,912 KB
testcase_55 AC 280 ms
81,064 KB
testcase_56 AC 278 ms
81,344 KB
testcase_57 AC 660 ms
81,084 KB
testcase_58 WA -
testcase_59 AC 282 ms
80,872 KB
testcase_60 WA -
testcase_61 AC 658 ms
81,236 KB
testcase_62 AC 662 ms
80,888 KB
testcase_63 AC 279 ms
80,880 KB
testcase_64 AC 658 ms
81,208 KB
testcase_65 AC 658 ms
81,012 KB
testcase_66 AC 622 ms
81,120 KB
testcase_67 AC 660 ms
81,208 KB
testcase_68 AC 618 ms
81,004 KB
testcase_69 AC 620 ms
81,008 KB
testcase_70 AC 277 ms
81,108 KB
testcase_71 AC 623 ms
80,888 KB
testcase_72 AC 662 ms
81,268 KB
testcase_73 AC 281 ms
81,040 KB
testcase_74 AC 277 ms
81,232 KB
testcase_75 AC 615 ms
80,888 KB
testcase_76 AC 276 ms
81,280 KB
testcase_77 AC 279 ms
81,004 KB
testcase_78 AC 615 ms
81,284 KB
testcase_79 AC 618 ms
81,140 KB
testcase_80 AC 279 ms
81,200 KB
testcase_81 AC 276 ms
80,880 KB
testcase_82 AC 656 ms
81,208 KB
testcase_83 AC 275 ms
80,952 KB
testcase_84 AC 575 ms
81,092 KB
testcase_85 AC 573 ms
81,080 KB
testcase_86 AC 573 ms
80,984 KB
testcase_87 AC 577 ms
80,732 KB
testcase_88 AC 581 ms
81,008 KB
testcase_89 AC 578 ms
81,052 KB
testcase_90 AC 572 ms
80,784 KB
testcase_91 AC 580 ms
81,176 KB
testcase_92 AC 584 ms
80,900 KB
testcase_93 AC 573 ms
80,792 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from random import *
K,N=map(int,input().split())
A=list(map(int,input().split()))
B=list(map(int,input().split()))
for i in range(54321):
  M=min(A[i],B[0])
  for j in range(K):
    X=A[i+j]
    if X>B[j]:
      X=B[j]
    if M<X:
      M=X
  A.append(M)
print(A[min(N,50005)])
0