結果
問題 |
No.1280 Beyond C
|
ユーザー |
![]() |
提出日時 | 2020-12-30 06:10:20 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 250 ms / 2,000 ms |
コード長 | 559 bytes |
コンパイル時間 | 263 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 25,952 KB |
最終ジャッジ日時 | 2024-10-06 12:37:43 |
合計ジャッジ時間 | 3,512 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 23 |
ソースコード
import sys def S(): return sys.stdin.readline().rstrip() def I(): return int(sys.stdin.readline().rstrip()) def MI(): return map(int,sys.stdin.readline().rstrip().split()) def LI(): return list(map(int,sys.stdin.readline().rstrip().split())) def LS(): return list(sys.stdin.readline().rstrip().split()) n,m,c = MI() a = sorted(LI()) b = sorted(LI()) j = m-1 cnt = 0 for i in range(n): cnt += m-1-j while j >= 0: if a[i]*b[j] > c: cnt += 1 j -= 1 else: break print(cnt/(m*n))