제출 #476984

#제출 시각아이디문제언어결과실행 시간메모리
476984PiejanVDCBitaro the Brave (JOI19_ho_t1)C++17
20 / 100
1083 ms716 KiB
#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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...