题很水。—— OdioseeOdioseeOdiosee
标准答案说是二分答案,可是实际上比这简单多了。只要边读入边更新剩下的时间就行了。记得加上双程!
话不多说,直接上源码:
#include<iostream> using namespace std;