Submission #476984

# Submission time Handle Problem Language Result Execution time Memory
476984 2021-09-29T16:34:55 Z PiejanVDC Bitaro the Brave (JOI19_ho_t1) C++17
20 / 100
1000 ms 716 KB
#include <bits/stdc++.h>
using namespace std;

signed main() {
    int n,m; cin>>n>>m;
    vector<string>v(n);
    for(auto &z : v)
        cin>>z;
    int ans=0;
    for(int i = 0 ; i < n ; i++)
        for(int k = i+1 ; k < n ; k++)
            for(int j = 0 ; j < m ; j++)
                for(int l = j+1 ; l < m ; l++) {
                    if(v[i][j] == 'J' && v[i][l] == 'O' && v[k][j] == 'I')
                        ans++;
                }
    cout << ans;
    return 0;
}
# Verdict Execution time Memory Grader output
1 Correct 1 ms 204 KB Output is correct
2 Correct 1 ms 204 KB Output is correct
3 Correct 1 ms 204 KB Output is correct
4 Correct 1 ms 204 KB Output is correct
5 Correct 31 ms 204 KB Output is correct
6 Correct 14 ms 312 KB Output is correct
7 Correct 25 ms 316 KB Output is correct
8 Correct 31 ms 204 KB Output is correct
9 Correct 19 ms 204 KB Output is correct
10 Correct 24 ms 204 KB Output is correct
11 Correct 34 ms 300 KB Output is correct
12 Correct 19 ms 308 KB Output is correct
13 Correct 24 ms 204 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 204 KB Output is correct
2 Correct 1 ms 204 KB Output is correct
3 Correct 1 ms 204 KB Output is correct
4 Correct 1 ms 204 KB Output is correct
5 Correct 31 ms 204 KB Output is correct
6 Correct 14 ms 312 KB Output is correct
7 Correct 25 ms 316 KB Output is correct
8 Correct 31 ms 204 KB Output is correct
9 Correct 19 ms 204 KB Output is correct
10 Correct 24 ms 204 KB Output is correct
11 Correct 34 ms 300 KB Output is correct
12 Correct 19 ms 308 KB Output is correct
13 Correct 24 ms 204 KB Output is correct
14 Execution timed out 1083 ms 716 KB Time limit exceeded
15 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 204 KB Output is correct
2 Correct 1 ms 204 KB Output is correct
3 Correct 1 ms 204 KB Output is correct
4 Correct 1 ms 204 KB Output is correct
5 Correct 31 ms 204 KB Output is correct
6 Correct 14 ms 312 KB Output is correct
7 Correct 25 ms 316 KB Output is correct
8 Correct 31 ms 204 KB Output is correct
9 Correct 19 ms 204 KB Output is correct
10 Correct 24 ms 204 KB Output is correct
11 Correct 34 ms 300 KB Output is correct
12 Correct 19 ms 308 KB Output is correct
13 Correct 24 ms 204 KB Output is correct
14 Execution timed out 1083 ms 716 KB Time limit exceeded
15 Halted 0 ms 0 KB -