Sweets Eating
#include<iostream>#include<cstdio>#include<cstring>#include<algorithm>#include<iomanip>long long a[1000010], sum[100100];using namespace std;int main(){ int n, m...