結果

問題 No.1280 Beyond C
ユーザー jensenjensen
提出日時 2021-01-06 16:03:45
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 485 bytes
コンパイル時間 335 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 54,620 KB
最終ジャッジ日時 2024-04-24 16:54:48
合計ジャッジ時間 13,818 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 458 ms
43,444 KB
testcase_01 AC 455 ms
43,848 KB
testcase_02 AC 463 ms
43,444 KB
testcase_03 AC 446 ms
43,720 KB
testcase_04 AC 459 ms
43,844 KB
testcase_05 AC 458 ms
43,852 KB
testcase_06 AC 451 ms
43,848 KB
testcase_07 AC 456 ms
43,720 KB
testcase_08 AC 464 ms
43,720 KB
testcase_09 AC 452 ms
43,956 KB
testcase_10 AC 449 ms
43,440 KB
testcase_11 AC 459 ms
43,448 KB
testcase_12 AC 444 ms
43,948 KB
testcase_13 AC 435 ms
43,844 KB
testcase_14 AC 446 ms
43,704 KB
testcase_15 AC 579 ms
48,304 KB
testcase_16 AC 523 ms
48,344 KB
testcase_17 AC 564 ms
48,680 KB
testcase_18 AC 571 ms
54,620 KB
testcase_19 WA -
testcase_20 AC 711 ms
54,176 KB
testcase_21 AC 711 ms
54,048 KB
testcase_22 AC 714 ms
54,176 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import numpy as np

def findX(l,i,x):
    j=i
    for j in range(i,len(l)):
        if(l[j]>x):
            break
        if(j==len(l)-1):
            return 0,0
    return len(l)-j,j

[n,m,c]=list(map(int,input().split()))
a=list(map(int, input().split()))
b=list(map(int, input().split()))
b.sort()
a=np.array(a)
b=np.array(b)
a=np.sort(a)[::-1]
count=0
s=n*m
idx=0
for i in range(n):
    x=c/a[i]
    po,idx=findX(b,idx,x)
    count+=po
    if(po==0): 
        break
print(count/s) 
0