more
```cpp
include
include
using namespace std;
void hartal(vector & days, int h) {
int n = days.size();
int t = h - 1;
while (t < n) {
int r = t % 7;
if (r != 5 && r != 6)
days[t] = true;
t += h;
}
}继续阅读 »
more
```cpp
include
include
using namespace std;
typedef long long ll_t;
bool load_input(vector & s) {
s.clear();
int n;
if (!(cin >> n))
return false;
for (int i = 0; i < n; i++) {
ll_t k;
if (!(cin >> k))
return false;
s.push_back(k);
}
return true;
}继续阅读 »