QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#790571#9548. The Foolucup-team5217#WA 0ms3616kbC++23513b2024-11-28 13:37:192024-11-28 13:37:19

Judging History

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

  • [2024-11-28 13:37:19]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3616kb
  • [2024-11-28 13:37:19]
  • 提交

answer

#include<bits/stdc++.h>
using namespace std;
void solve(){
    int n,m,k;
    cin>>n>>m>>k;
    pair<int,int> pz;int num=0;
    for(int i=0;i<n;i++){
        string s;
        cin>>s;
        for(int j=0;j<m*k;j+=k){
            if(s.substr(j,k)!=s.substr(0,k))    {num++;pz={i+1,j/k+1};}
        }
    }
    if(num>=2)   cout<<"1 1\n";
    else cout<<pz.first<<' '<<pz.second<<'\n';
}
int main(){
    ios::sync_with_stdio(0),cin.tie(0);
    int _ =1;
    // cin>>_;
    while(_--) solve();
}

詳細信息

Test #1:

score: 100
Accepted
time: 0ms
memory: 3592kb

input:

3 5 3
QWQQWQQWQQWQQWQ
QWQQWQQWQQWQQWQ
QWQQWQQWQQWQQwQ

output:

3 5

result:

ok single line: '3 5'

Test #2:

score: -100
Wrong Answer
time: 0ms
memory: 3616kb

input:

2 2 1
LL
}L

output:

2 2

result:

wrong answer 1st lines differ - expected: '2 1', found: '2 2'