QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#706538#9548. The Foolsuperguymj#WA 0ms3744kbC++20733b2024-11-03 12:06:072024-11-03 12:06:08

Judging History

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

  • [2024-11-03 12:06:08]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3744kb
  • [2024-11-03 12:06:07]
  • 提交

answer

#include <bits/stdc++.h>
#define rep(i,x,y) for(int i = x; i <= y; i++)
#define mid ((l + r) >> 1)
#define lch (rt << 1)
#define rch (rt << 1 | 1)

using namespace std;

using u32 = unsigned;
using i64 = long long;
using u64 = unsigned long long;

int main() {
    ios::sync_with_stdio(false);
    cin.tie(0), cout.tie(0);

    int n, m, k;
    cin >> n >> m >> k;

    vector<string> s(n);
    rep(i,0,n-1) cin >> s[i];

    const string base = s[0].substr(0, k);

    rep(i,0,n-1) {
        for (int j = 0; j < m; j++) {
            if (s[i].substr(j * k, k) != base) {
                cout << i + 1 << ' ' << j + 1 << '\n';
                return 0;
            }
        }
    }

    return 0;
}

詳細信息

Test #1:

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

input:

3 5 3
QWQQWQQWQQWQQWQ
QWQQWQQWQQWQQWQ
QWQQWQQWQQWQQwQ

output:

3 5

result:

ok single line: '3 5'

Test #2:

score: 0
Accepted
time: 0ms
memory: 3588kb

input:

2 2 1
LL
}L

output:

2 1

result:

ok single line: '2 1'

Test #3:

score: 0
Accepted
time: 0ms
memory: 3596kb

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: 3588kb

input:

2 2 10
ayspaufftvuaaavaaaaa
uaaavaaaaauaaavaaaaa

output:

1 2

result:

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