結果
| 問題 | No.1280 Beyond C |
| コンテスト | |
| ユーザー |
uni_python
|
| 提出日時 | 2020-11-06 21:49:27 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 193 ms / 2,000 ms |
| + 927µs | |
| コード長 | 675 bytes |
| 記録 | |
| コンパイル時間 | 233 ms |
| コンパイル使用メモリ | 96,112 KB |
| 実行使用メモリ | 112,896 KB |
| 最終ジャッジ日時 | 2026-08-23 07:14:49 |
| 合計ジャッジ時間 | 4,314 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 23 |
ソースコード
import sys
input=sys.stdin.readline
def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))
N,M,C=MI()
A=LI()
B=LI()
A.sort()
B.sort()
def my_round(x,y,a):
ans=x//y
rem=x%y
L=[0]*a
for i in range(a):
rem*=10
temp=(rem//y)
# print(i,temp)
L[i]=temp
rem%=y
rem*=10
temp=(rem//y)
if temp>=5:
L[-1]+=1
ans=str(ans)+"."+"".join(map(str,L))
return float(ans)
import bisect
ans=0
for i in range(N):
a=A[i]
t=my_round(C,a,3)
num=bisect.bisect_right(B,t)
ans+=M-num
ans=my_round(ans,N*M,7)
print(ans)
uni_python