| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1023576 | vjudge1 | Bitaro the Brave (JOI19_ho_t1) | C++17 | 127 ms | 18572 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<bits/stdc++.h>
using namespace std;
#define mod 1000000007
#define nmax 3007
#define fi first
#define se second
#define ll long long
ll t=1,n,m=0,i=0,j=0,d=0,x=0,k=0,y=0,z,h[nmax][200],c[nmax][200];
char ch[3007][3007];
int main()
{
ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
cin>>n>>m;
for(i=1;i<=n;++i)
{
for(j=1;j<=m;++j)
{
cin>>ch[i][j];
h[i][ch[i][j]]++;
c[j][ch[i][j]]++;
}
}
d=0;
for(i=1;i<=n;++i)
{
for(j=1;j<=m;++j)
{
h[i][ch[i][j]]--;
c[j][ch[i][j]]--;
if(ch[i][j]=='J')
{
d+=h[i]['O']*c[j]['I'];
}
}
}
cout<<d;
}
컴파일 시 표준 에러 (stderr) 메시지
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
