結果
| 問題 |
No.989 N×Mマス計算(K以上)
|
| コンテスト | |
| ユーザー |
ntuda
|
| 提出日時 | 2024-01-01 20:29:03 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 286 bytes |
| コンパイル時間 | 417 ms |
| コンパイル使用メモリ | 82,072 KB |
| 実行使用メモリ | 87,120 KB |
| 最終ジャッジ日時 | 2024-09-27 17:29:00 |
| 合計ジャッジ時間 | 2,985 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 12 WA * 6 |
ソースコード
from bisect import bisect_left
N,M,K = map(int,input().split())
op, *B = input().split()
B = sorted([int(s) for s in B])
A = [int(input()) for _ in range(N)]
ans = 0
for a in A:
if op == "+":
c = K - a
else:
c = K // a
ans += M - bisect_left(B,c)
print(ans)
ntuda