Related
In following contests:
cpp代码
#include<bits/stdc++.h>
using namespace std;
const int maxn = 1e5 + 5;
#define int long long
有一条笔直的生产线,机器按照位置编号排列(编号为整数)。一台维修机器人初始位于位置 k。它沿着生产线匀速移动,每移动一个单位距离需要花费 m 秒。维修操作本身不消耗时间。
在 0 时刻之后,会陆续收到 n 个维修请求。每个请求包含目标位置 pi 和到达时间 ti,表示在 ti 秒时,位置 pi 的机器需要维修。
机器人按照以下规则依次处理所有请求:
In following contests:
Scan the QR code below with WeChat to sign in
First-time scan will create your account automatically
请使用微信扫描下方二维码完成注册