QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#798951 | #9548. The Fool | laopohou# | WA | 0ms | 3716kb | C++14 | 862b | 2024-12-04 19:24:32 | 2024-12-04 19:24:33 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
char s[2010][2010];
map<string,int> mp;
vector<pair<string,int> > vs;
string vs1;
int main()
{
int n,m,k;
cin>>n>>m>>k;
for (int i=1;i<=n;i++)
{
for (int j=1;j<=m;j++)
{
for (int k1=1;k1<=k;k1++)
{
cin>>s[i][(j-1)*k+k1];
}
}
}
int x,y,sum=0;
for (int i=1;i<=n;i++)
{
for (int j=1;j<=m;j++)
{
for (int k1=1;k1<=k;k1++)
{
if(s[i][(j-1)*k+k1]!=s[1][k1])
{
x=i;
y=j;
sum++;
}
}
}
}
if(sum==n*m-1)
{
cout<<"1 1";
}
else
{
cout<<x<<' '<<y;
}
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 0ms
memory: 3604kb
input:
3 5 3 QWQQWQQWQQWQQWQ QWQQWQQWQQWQQWQ QWQQWQQWQQWQQwQ
output:
3 5
result:
ok single line: '3 5'
Test #2:
score: 0
Accepted
time: 0ms
memory: 3652kb
input:
2 2 1 LL }L
output:
2 1
result:
ok single line: '2 1'
Test #3:
score: 0
Accepted
time: 0ms
memory: 3716kb
input:
2 2 10 u+gl<d'a9Bu+gl<d'a9B )M0wM2_Z8!u+gl<d'a9B
output:
2 1
result:
ok single line: '2 1'
Test #4:
score: -100
Wrong Answer
time: 0ms
memory: 3656kb
input:
2 2 10 ayspaufftvuaaavaaaaa uaaavaaaaauaaavaaaaa
output:
2 2
result:
wrong answer 1st lines differ - expected: '1 1', found: '2 2'