# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
681840 | Ronin13 | Nautilus (BOI19_nautilus) | C++14 | 196 ms | 928 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
#define ll long long
#define ull unsigned ll
#define f first
#define s second
#define pii pair<ll,ll>
#define pll pair<ll,ll>
#define pb push_back
#define epb emplace_back
using namespace std;
const int nmax = 5e5 + 1;
bitset <512> cur[505];
bitset <512> valid[505];
int main(){
int n, m, q; cin >> n >> m >> q;
char c[n + 1][m + 1];
for(int i = 1 ;i <= n; i++){
for(int j = 1 ;j <= m; j++)
cin >> c[i][j];
for(int j = 1 ;j <= m; j++){
if(c[i][j] == '.')
valid[i][j] = 1, cur[i][j] = 1;
}
}
for(int i = 1; i <= q; i++){
char c; cin >> c;
if(c == 'W'){
for(int j = 1; j <= n; j++)
cur[j] >>= 1,cur[j] &= valid[j];
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |