| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 199818 | mohammedehab2002 | Sajam (COCI18_sajam) | C++11 | 127 ms | 2424 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
int n,k;
string s[1005];
bitset<1005> b[1005];
int get(int i,int j)
{
int cnt=(b[i]^b[j]).count();
return min(cnt,n-cnt);
}
int main()
{
cin >> n >> k;
for (int i=0;i<n;i++)
{
cin >> s[i];
for (int j=0;j<n;j++)
b[i][j]=(s[i][j]=='o');
}
for (int i=0;i<n;i++)
{
int cur=0;
for (int j=0;j<n;j++)
cur+=get(i,j);
if (cur<=k)
{
cout << "DA";
return 0;
}
}
cout << "NE";
}| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
