# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1173960 | stdfloat | Street Lamps (APIO19_street_lamps) | C++20 | 5092 ms | 589824 KiB |
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
ios::sync_with_stdio(false); cin.tie(nullptr);
int n, q;
cin >> n >> q;
vector<string> s(q + 1);
cin >> s[0]; s[0] = ' ' + s[0];
for (int i = 1; i <= q; i++) {
s[i] = s[i - 1];
string t;
cin >> t;
if (t == "toggle") {
int x;
cin >> x;
s[i][x] = (s[i][x] == '0' ? '1' : '0');
}
else {
int x, y;
cin >> x >> y;
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |