QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#760752#9548. The Fool1TSHENG_WA 1ms3844kbC++20375b2024-11-18 19:03:192024-11-18 19:03:21

Judging History

你现在查看的是最新测评结果

  • [2024-11-18 19:03:21]
  • 评测
  • 测评结果:WA
  • 用时:1ms
  • 内存:3844kb
  • [2024-11-18 19:03:19]
  • 提交

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'