# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
213435 | MKopchev | Genetics (BOI18_genetics) | C++14 | 2098 ms | 9080 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<bits/stdc++.h>
using namespace std;
const int nmax=4100+42;
int n,m,k;
char inp[nmax][nmax];
char in()
{
char c=getchar();
while(c!='A'&&c!='C'&&c!='G'&&c!='T')c=getchar();
return c;
}
void test(int bad)
{
for(int i=1;i<=n;i++)
if(i!=bad)
{
int diff=0;
for(int j=1;j<=m;j++)
if(inp[i][j]!=inp[bad][j])diff++;
if(diff!=k)return;
}
printf("%i\n",bad);
exit(0);
}
int main()
{
scanf("%i%i%i",&n,&m,&k);
for(int i=1;i<=n;i++)
for(int j=1;j<=m;j++)
inp[i][j]=in();
for(int i=1;i<=n;i++)
test(i);
return 0;
}
컴파일 시 표준 에러 (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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |