QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#760752 | #9548. The Fool | 1TSHENG_ | WA | 1ms | 3844kb | C++20 | 375b | 2024-11-18 19:03:19 | 2024-11-18 19:03:21 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
map<string,int> mp;
int a,b;
int main(){
int n,m,len;
string s="";
cin>>n>>m>>len;
for(int i=1;i<=n;i++){
string d;
cin>>d;
s="";
for(int j=0;j<m*len;j++){
s+=d[j];
if((j+1)%len==0){
mp[s]++;
if(mp[s]==1){
a=i,b=j/len+1;
}
s="";
}
}
}
cout<<a<<" "<<b<<endl;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 0ms
memory: 3844kb
input:
3 5 3 QWQQWQQWQQWQQWQ QWQQWQQWQQWQQWQ QWQQWQQWQQWQQwQ
output:
3 5
result:
ok single line: '3 5'
Test #2:
score: 0
Accepted
time: 1ms
memory: 3628kb
input:
2 2 1 LL }L
output:
2 1
result:
ok single line: '2 1'
Test #3:
score: 0
Accepted
time: 1ms
memory: 3548kb
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: 1ms
memory: 3804kb
input:
2 2 10 ayspaufftvuaaavaaaaa uaaavaaaaauaaavaaaaa
output:
1 2
result:
wrong answer 1st lines differ - expected: '1 1', found: '1 2'