QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#126708#6743. water235Bucketsmith#WA 1ms3588kbC++17335b2023-07-18 21:39:382023-07-18 21:39:42

Judging History

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

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2023-07-18 21:39:42]
  • 评测
  • 测评结果:WA
  • 用时:1ms
  • 内存:3588kb
  • [2023-07-18 21:39:38]
  • 提交

answer

#include <bits/stdc++.h>
using namespace std;

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

    int n, m;
    cin >> n >> m;
    cout << max(n, m) << "\n";
    for(int i = 1; i <= n; i ++)
        for(int j = 1; j <= m; j ++)
            cout << "01"[min(i, j) == min(n, m) || i == j] << " \n"[j == m];
}

详细

Test #1:

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

input:

2 1

output:

2
1
1

result:

ok The answer is correct.

Test #2:

score: 0
Accepted
time: 1ms
memory: 3448kb

input:

3 3

output:

3
1 0 0
0 1 0
0 0 1

result:

ok The answer is correct.

Test #3:

score: -100
Wrong Answer
time: 1ms
memory: 3588kb

input:

1 4

output:

4
1 1 1 1

result:

wrong answer The answer is wrong: expected = 3, found = 4