QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#269513#6819. Largest Unique Winsucup-team1001#AC ✓1ms3544kbC++23451b2023-11-29 18:05:552023-11-29 18:05:56

Judging History

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

  • [2023-11-29 18:05:56]
  • 评测
  • 测评结果:AC
  • 用时:1ms
  • 内存:3544kb
  • [2023-11-29 18:05:55]
  • 提交

answer

#include "bits/stdc++.h"

using namespace std;
#define IOS ios::sync_with_stdio(0),cin.tie(0);

int ans[12][12];
void solve() {

    int n, m;
    cin >> n >> m;
    for (int i = 0; i < n; ++i) {
        ans[i][max(0, m - i / 2 - 1)] = 1;
    }
    for (int i = 0; i < n; ++i) {
        for (int j = 0; j < m; ++j) {
            cout << ans[i][j] << " ";
        }
        cout << endl;
    }
}

signed main() {
    solve();
}

这程序好像有点Bug,我给组数据试试?

详细

Test #1:

score: 100
Accepted
time: 1ms
memory: 3488kb

input:

2 2

output:

0 1 
0 1 

result:

ok ok  0.0000 0.0000

Test #2:

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

input:

3 3

output:

0 0 1 
0 0 1 
0 1 0 

result:

ok ok  -1.0000 -1.0000 1.0000

Test #3:

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

input:

3 2

output:

0 1 
0 1 
1 0 

result:

ok ok  -1.0000 -1.0000 1.0000

Test #4:

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

input:

12 12

output:

0 0 0 0 0 0 0 0 0 0 0 1 
0 0 0 0 0 0 0 0 0 0 0 1 
0 0 0 0 0 0 0 0 0 0 1 0 
0 0 0 0 0 0 0 0 0 0 1 0 
0 0 0 0 0 0 0 0 0 1 0 0 
0 0 0 0 0 0 0 0 0 1 0 0 
0 0 0 0 0 0 0 0 1 0 0 0 
0 0 0 0 0 0 0 0 1 0 0 0 
0 0 0 0 0 0 0 1 0 0 0 0 
0 0 0 0 0 0 0 1 0 0 0 0 
0 0 0 0 0 0 1 0 0 0 0 0 
0 0 0 0 0 0 1 0 0 0 0 0 

result:

ok ok  0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000

Test #5:

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

input:

12 11

output:

0 0 0 0 0 0 0 0 0 0 1 
0 0 0 0 0 0 0 0 0 0 1 
0 0 0 0 0 0 0 0 0 1 0 
0 0 0 0 0 0 0 0 0 1 0 
0 0 0 0 0 0 0 0 1 0 0 
0 0 0 0 0 0 0 0 1 0 0 
0 0 0 0 0 0 0 1 0 0 0 
0 0 0 0 0 0 0 1 0 0 0 
0 0 0 0 0 0 1 0 0 0 0 
0 0 0 0 0 0 1 0 0 0 0 
0 0 0 0 0 1 0 0 0 0 0 
0 0 0 0 0 1 0 0 0 0 0 

result:

ok ok  0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000

Test #6:

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

input:

11 12

output:

0 0 0 0 0 0 0 0 0 0 0 1 
0 0 0 0 0 0 0 0 0 0 0 1 
0 0 0 0 0 0 0 0 0 0 1 0 
0 0 0 0 0 0 0 0 0 0 1 0 
0 0 0 0 0 0 0 0 0 1 0 0 
0 0 0 0 0 0 0 0 0 1 0 0 
0 0 0 0 0 0 0 0 1 0 0 0 
0 0 0 0 0 0 0 0 1 0 0 0 
0 0 0 0 0 0 0 1 0 0 0 0 
0 0 0 0 0 0 0 1 0 0 0 0 
0 0 0 0 0 0 1 0 0 0 0 0 

result:

ok ok  -1.0000 -1.0000 -1.0000 -1.0000 -1.0000 -1.0000 -1.0000 -1.0000 -1.0000 -1.0000 1.0000

Test #7:

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

input:

12 3

output:

0 0 1 
0 0 1 
0 1 0 
0 1 0 
1 0 0 
1 0 0 
1 0 0 
1 0 0 
1 0 0 
1 0 0 
1 0 0 
1 0 0 

result:

ok ok  0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000

Test #8:

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

input:

2 12

output:

0 0 0 0 0 0 0 0 0 0 0 1 
0 0 0 0 0 0 0 0 0 0 0 1 

result:

ok ok  0.0000 0.0000

Test #9:

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

input:

4 12

output:

0 0 0 0 0 0 0 0 0 0 0 1 
0 0 0 0 0 0 0 0 0 0 0 1 
0 0 0 0 0 0 0 0 0 0 1 0 
0 0 0 0 0 0 0 0 0 0 1 0 

result:

ok ok  0.0000 0.0000 0.0000 0.0000

Test #10:

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

input:

12 4

output:

0 0 0 1 
0 0 0 1 
0 0 1 0 
0 0 1 0 
0 1 0 0 
0 1 0 0 
1 0 0 0 
1 0 0 0 
1 0 0 0 
1 0 0 0 
1 0 0 0 
1 0 0 0 

result:

ok ok  0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000

Test #11:

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

input:

3 12

output:

0 0 0 0 0 0 0 0 0 0 0 1 
0 0 0 0 0 0 0 0 0 0 0 1 
0 0 0 0 0 0 0 0 0 0 1 0 

result:

ok ok  -1.0000 -1.0000 1.0000

Test #12:

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

input:

4 5

output:

0 0 0 0 1 
0 0 0 0 1 
0 0 0 1 0 
0 0 0 1 0 

result:

ok ok  0.0000 0.0000 0.0000 0.0000

Test #13:

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

input:

4 9

output:

0 0 0 0 0 0 0 0 1 
0 0 0 0 0 0 0 0 1 
0 0 0 0 0 0 0 1 0 
0 0 0 0 0 0 0 1 0 

result:

ok ok  0.0000 0.0000 0.0000 0.0000

Test #14:

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

input:

9 5

output:

0 0 0 0 1 
0 0 0 0 1 
0 0 0 1 0 
0 0 0 1 0 
0 0 1 0 0 
0 0 1 0 0 
0 1 0 0 0 
0 1 0 0 0 
1 0 0 0 0 

result:

ok ok  -1.0000 -1.0000 -1.0000 -1.0000 -1.0000 -1.0000 -1.0000 -1.0000 1.0000

Test #15:

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

input:

10 5

output:

0 0 0 0 1 
0 0 0 0 1 
0 0 0 1 0 
0 0 0 1 0 
0 0 1 0 0 
0 0 1 0 0 
0 1 0 0 0 
0 1 0 0 0 
1 0 0 0 0 
1 0 0 0 0 

result:

ok ok  0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000

Test #16:

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

input:

11 5

output:

0 0 0 0 1 
0 0 0 0 1 
0 0 0 1 0 
0 0 0 1 0 
0 0 1 0 0 
0 0 1 0 0 
0 1 0 0 0 
0 1 0 0 0 
1 0 0 0 0 
1 0 0 0 0 
1 0 0 0 0 

result:

ok ok  0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000

Test #17:

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

input:

11 6

output:

0 0 0 0 0 1 
0 0 0 0 0 1 
0 0 0 0 1 0 
0 0 0 0 1 0 
0 0 0 1 0 0 
0 0 0 1 0 0 
0 0 1 0 0 0 
0 0 1 0 0 0 
0 1 0 0 0 0 
0 1 0 0 0 0 
1 0 0 0 0 0 

result:

ok ok  -1.0000 -1.0000 -1.0000 -1.0000 -1.0000 -1.0000 -1.0000 -1.0000 -1.0000 -1.0000 1.0000

Test #18:

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

input:

12 6

output:

0 0 0 0 0 1 
0 0 0 0 0 1 
0 0 0 0 1 0 
0 0 0 0 1 0 
0 0 0 1 0 0 
0 0 0 1 0 0 
0 0 1 0 0 0 
0 0 1 0 0 0 
0 1 0 0 0 0 
0 1 0 0 0 0 
1 0 0 0 0 0 
1 0 0 0 0 0 

result:

ok ok  0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000

Test #19:

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

input:

12 5

output:

0 0 0 0 1 
0 0 0 0 1 
0 0 0 1 0 
0 0 0 1 0 
0 0 1 0 0 
0 0 1 0 0 
0 1 0 0 0 
0 1 0 0 0 
1 0 0 0 0 
1 0 0 0 0 
1 0 0 0 0 
1 0 0 0 0 

result:

ok ok  0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000

Test #20:

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

input:

12 7

output:

0 0 0 0 0 0 1 
0 0 0 0 0 0 1 
0 0 0 0 0 1 0 
0 0 0 0 0 1 0 
0 0 0 0 1 0 0 
0 0 0 0 1 0 0 
0 0 0 1 0 0 0 
0 0 0 1 0 0 0 
0 0 1 0 0 0 0 
0 0 1 0 0 0 0 
0 1 0 0 0 0 0 
0 1 0 0 0 0 0 

result:

ok ok  0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000

Test #21:

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

input:

5 12

output:

0 0 0 0 0 0 0 0 0 0 0 1 
0 0 0 0 0 0 0 0 0 0 0 1 
0 0 0 0 0 0 0 0 0 0 1 0 
0 0 0 0 0 0 0 0 0 0 1 0 
0 0 0 0 0 0 0 0 0 1 0 0 

result:

ok ok  -1.0000 -1.0000 -1.0000 -1.0000 1.0000

Test #22:

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

input:

9 12

output:

0 0 0 0 0 0 0 0 0 0 0 1 
0 0 0 0 0 0 0 0 0 0 0 1 
0 0 0 0 0 0 0 0 0 0 1 0 
0 0 0 0 0 0 0 0 0 0 1 0 
0 0 0 0 0 0 0 0 0 1 0 0 
0 0 0 0 0 0 0 0 0 1 0 0 
0 0 0 0 0 0 0 0 1 0 0 0 
0 0 0 0 0 0 0 0 1 0 0 0 
0 0 0 0 0 0 0 1 0 0 0 0 

result:

ok ok  -1.0000 -1.0000 -1.0000 -1.0000 -1.0000 -1.0000 -1.0000 -1.0000 1.0000

Test #23:

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

input:

12 9

output:

0 0 0 0 0 0 0 0 1 
0 0 0 0 0 0 0 0 1 
0 0 0 0 0 0 0 1 0 
0 0 0 0 0 0 0 1 0 
0 0 0 0 0 0 1 0 0 
0 0 0 0 0 0 1 0 0 
0 0 0 0 0 1 0 0 0 
0 0 0 0 0 1 0 0 0 
0 0 0 0 1 0 0 0 0 
0 0 0 0 1 0 0 0 0 
0 0 0 1 0 0 0 0 0 
0 0 0 1 0 0 0 0 0 

result:

ok ok  0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000

Test #24:

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

input:

12 10

output:

0 0 0 0 0 0 0 0 0 1 
0 0 0 0 0 0 0 0 0 1 
0 0 0 0 0 0 0 0 1 0 
0 0 0 0 0 0 0 0 1 0 
0 0 0 0 0 0 0 1 0 0 
0 0 0 0 0 0 0 1 0 0 
0 0 0 0 0 0 1 0 0 0 
0 0 0 0 0 0 1 0 0 0 
0 0 0 0 0 1 0 0 0 0 
0 0 0 0 0 1 0 0 0 0 
0 0 0 0 1 0 0 0 0 0 
0 0 0 0 1 0 0 0 0 0 

result:

ok ok  0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000

Test #25:

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

input:

10 12

output:

0 0 0 0 0 0 0 0 0 0 0 1 
0 0 0 0 0 0 0 0 0 0 0 1 
0 0 0 0 0 0 0 0 0 0 1 0 
0 0 0 0 0 0 0 0 0 0 1 0 
0 0 0 0 0 0 0 0 0 1 0 0 
0 0 0 0 0 0 0 0 0 1 0 0 
0 0 0 0 0 0 0 0 1 0 0 0 
0 0 0 0 0 0 0 0 1 0 0 0 
0 0 0 0 0 0 0 1 0 0 0 0 
0 0 0 0 0 0 0 1 0 0 0 0 

result:

ok ok  0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000

Test #26:

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

input:

2 3

output:

0 0 1 
0 0 1 

result:

ok ok  0.0000 0.0000

Test #27:

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

input:

2 4

output:

0 0 0 1 
0 0 0 1 

result:

ok ok  0.0000 0.0000

Test #28:

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

input:

2 5

output:

0 0 0 0 1 
0 0 0 0 1 

result:

ok ok  0.0000 0.0000

Test #29:

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

input:

12 2

output:

0 1 
0 1 
1 0 
1 0 
1 0 
1 0 
1 0 
1 0 
1 0 
1 0 
1 0 
1 0 

result:

ok ok  0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000

Test #30:

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

input:

4 2

output:

0 1 
0 1 
1 0 
1 0 

result:

ok ok  0.0000 0.0000 0.0000 0.0000

Test #31:

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

input:

5 2

output:

0 1 
0 1 
1 0 
1 0 
1 0 

result:

ok ok  0.0000 0.0000 0.0000 0.0000 0.0000

Test #32:

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

input:

7 9

output:

0 0 0 0 0 0 0 0 1 
0 0 0 0 0 0 0 0 1 
0 0 0 0 0 0 0 1 0 
0 0 0 0 0 0 0 1 0 
0 0 0 0 0 0 1 0 0 
0 0 0 0 0 0 1 0 0 
0 0 0 0 0 1 0 0 0 

result:

ok ok  -1.0000 -1.0000 -1.0000 -1.0000 -1.0000 -1.0000 1.0000

Test #33:

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

input:

6 9

output:

0 0 0 0 0 0 0 0 1 
0 0 0 0 0 0 0 0 1 
0 0 0 0 0 0 0 1 0 
0 0 0 0 0 0 0 1 0 
0 0 0 0 0 0 1 0 0 
0 0 0 0 0 0 1 0 0 

result:

ok ok  0.0000 0.0000 0.0000 0.0000 0.0000 0.0000

Test #34:

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

input:

6 10

output:

0 0 0 0 0 0 0 0 0 1 
0 0 0 0 0 0 0 0 0 1 
0 0 0 0 0 0 0 0 1 0 
0 0 0 0 0 0 0 0 1 0 
0 0 0 0 0 0 0 1 0 0 
0 0 0 0 0 0 0 1 0 0 

result:

ok ok  0.0000 0.0000 0.0000 0.0000 0.0000 0.0000