1614C Divan and bitwise operations
尺取法模板注意 每次取出的钱不能超过ATM机剩余的余额:sum+a[t]+S>=0sum + a[t] + S >= 0sum+a[t]+S>=0typedef long long ll;const int N = 2e5+10;int n;ll S, a[N];void solve(){ scanf("%d %lld", &n, &S); for(int i = 1; i <= n; i