Lang:G++
Edit12345678910111213141516171819202122232425262728293031#include <stdio.h>#include <iostream>using namespace std;int d[100005];int N, K;int getScore(int T){int rest = 0, score = 0;for (int i = 1; i <= N; i++){rest = rest + T;if (rest > d[i]){score += 1;rest -= d[i];}elserest = 0;}return score;}int getT(int low, int high){int yuzhi = N/2;int mid;while (low < high){mid = (high + low) / 2;