답안 #476984

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
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;
}
# 결과 실행 시간 메모리 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
# 결과 실행 시간 메모리 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 -
# 결과 실행 시간 메모리 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 -