Submission #910197

# Submission time Handle Problem Language Result Execution time Memory
910197 2024-01-18T01:40:43 Z ByeWorld Tracks in the Snow (BOI13_tracks) C++14
0 / 100
54 ms 1048 KB
#include <bits/stdc++.h>
#pragma GCC optimize("Ofast,unroll-loops")
#define bupol __builtin_popcount
//#define int long long 
#define ll long long
#define ld long double
#define fi first
#define se second
#define pb push_back
#define lf (id<<1)
#define rg ((id<<1)|1)
#define md ((l+r)>>1)
using namespace std;
const int MAXN = 2e5+5;
const int MAXK = 205;
const int LOG = 20;
const int MOD = 1e9+7;
const int SQRT = 520;
const int INF = 1e9+10;
typedef pair<ll,ll> pii;
typedef pair<ll,pii> ipii;

int h, w;
char s[410][410];

signed main(){
    //ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
    cin >> h >> w;
    for(int i=0; i<h; i++){
        for(int j=0; j<w; j++) cin >> s[i][j];
    }

    int ans = 0, an = 0; set<char> x; 
    for(int i=0; i<h; i++){
        for(int j=0; j<w; j++){
            if(s[i][j]=='.') continue;
            if(s[i][j] == 'F') ans++;
            else if(s[i][j] == 'R') an++;
        }
    }
    cout << ans+an << '\n';
}
# Verdict Execution time Memory Grader output
1 Runtime error 8 ms 1020 KB Execution killed with signal 11
2 Incorrect 0 ms 348 KB Output isn't correct
3 Incorrect 0 ms 348 KB Output isn't correct
4 Runtime error 6 ms 856 KB Execution killed with signal 11
5 Incorrect 3 ms 344 KB Output isn't correct
6 Incorrect 1 ms 348 KB Output isn't correct
7 Incorrect 1 ms 348 KB Output isn't correct
8 Incorrect 1 ms 348 KB Output isn't correct
9 Incorrect 1 ms 348 KB Output isn't correct
10 Incorrect 3 ms 348 KB Output isn't correct
11 Incorrect 2 ms 348 KB Output isn't correct
12 Incorrect 3 ms 348 KB Output isn't correct
13 Incorrect 3 ms 348 KB Output isn't correct
14 Incorrect 4 ms 348 KB Output isn't correct
15 Runtime error 9 ms 860 KB Execution killed with signal 11
16 Runtime error 12 ms 1048 KB Execution killed with signal 11
17 Runtime error 8 ms 860 KB Execution killed with signal 11
18 Runtime error 5 ms 860 KB Execution killed with signal 11
# Verdict Execution time Memory Grader output
1 Runtime error 1 ms 860 KB Execution killed with signal 11
2 Runtime error 17 ms 840 KB Execution killed with signal 11
3 Runtime error 53 ms 828 KB Execution killed with signal 11
4 Runtime error 29 ms 860 KB Execution killed with signal 11
5 Runtime error 39 ms 852 KB Execution killed with signal 11
6 Runtime error 51 ms 852 KB Execution killed with signal 11
7 Runtime error 1 ms 856 KB Execution killed with signal 11
8 Runtime error 1 ms 860 KB Execution killed with signal 11
9 Incorrect 2 ms 348 KB Output isn't correct
10 Incorrect 1 ms 348 KB Output isn't correct
11 Runtime error 1 ms 860 KB Execution killed with signal 11
12 Incorrect 1 ms 348 KB Output isn't correct
13 Runtime error 17 ms 856 KB Execution killed with signal 11
14 Runtime error 14 ms 860 KB Execution killed with signal 11
15 Runtime error 14 ms 704 KB Execution killed with signal 11
16 Incorrect 21 ms 544 KB Output isn't correct
17 Runtime error 27 ms 848 KB Execution killed with signal 11
18 Runtime error 26 ms 856 KB Execution killed with signal 11
19 Runtime error 26 ms 860 KB Execution killed with signal 11
20 Runtime error 27 ms 788 KB Execution killed with signal 11
21 Runtime error 39 ms 848 KB Execution killed with signal 11
22 Runtime error 40 ms 848 KB Execution killed with signal 11
23 Runtime error 40 ms 808 KB Execution killed with signal 11
24 Runtime error 38 ms 776 KB Execution killed with signal 11
25 Runtime error 51 ms 864 KB Execution killed with signal 11
26 Runtime error 45 ms 780 KB Execution killed with signal 11
27 Runtime error 50 ms 864 KB Execution killed with signal 11
28 Runtime error 53 ms 864 KB Execution killed with signal 11
29 Runtime error 52 ms 864 KB Execution killed with signal 11
30 Runtime error 54 ms 864 KB Execution killed with signal 11
31 Runtime error 42 ms 868 KB Execution killed with signal 11
32 Runtime error 51 ms 784 KB Execution killed with signal 11