QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#787584 | #9548. The Fool | OldMemory | WA | 0ms | 3604kb | C++20 | 866b | 2024-11-27 13:12:16 | 2024-11-27 13:12:25 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
#define int long long
typedef pair<int, int> PII;
typedef long long LL;
const int INF = 0x3f3f3f3f3f3f3f3f;
bool multi = 0;
void solve() {
int n, m, k;
cin >> n >> m >> k;
string tmp;
for(int i = 1; i <= n; i++) {
for(int j = 1; j <= m; j++) {
char c;
string s;
for(int t = 1; t <= k; t++) {
cin >> c;
s += c;
}
if(tmp.size() == 0) {
tmp = s;
}else if(tmp != s) {
cout << i << ' ' << j << '\n';
return;
}
}
}
}
signed main() {
ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);
int T = 1;
if(multi) cin >> T;
while(T--) {
solve();
}
return 0;
}
詳細信息
Test #1:
score: 100
Accepted
time: 0ms
memory: 3520kb
input:
3 5 3 QWQQWQQWQQWQQWQ QWQQWQQWQQWQQWQ QWQQWQQWQQWQQwQ
output:
3 5
result:
ok single line: '3 5'
Test #2:
score: 0
Accepted
time: 0ms
memory: 3604kb
input:
2 2 1 LL }L
output:
2 1
result:
ok single line: '2 1'
Test #3:
score: 0
Accepted
time: 0ms
memory: 3524kb
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: 3520kb
input:
2 2 10 ayspaufftvuaaavaaaaa uaaavaaaaauaaavaaaaa
output:
1 2
result:
wrong answer 1st lines differ - expected: '1 1', found: '1 2'