結果
| 問題 |
No.989 N×Mマス計算(K以上)
|
| コンテスト | |
| ユーザー |
rkyiolklo
|
| 提出日時 | 2020-04-21 10:09:36 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 421 bytes |
| コンパイル時間 | 117 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 20,688 KB |
| 最終ジャッジ日時 | 2024-10-07 16:15:41 |
| 合計ジャッジ時間 | 3,004 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 2 |
| other | RE * 18 |
ソースコード
n,m,k=map(int,input().split())
c=list(map(str,input().split()))
a=[0]*(n)
for i in range(n):
a[i]=int(input())
op=c[0]
b=[0]*m
for i in range(m):
b[i]=int(c[i+1])
a.sort()
b.sort()
from bisect import bisect_right
if op=='+':
cnt=n*m
for i in range(n):
cnt-=bisect_left(b,k-a[i])
print(cnt)
else:
cnt=n*m
for i in range(n):
cnt-=bisect_left(b,k//a[i])
print(cnt)
rkyiolklo