QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#233966#7317. Rectangles Inside RectanglehouzhiyuanWA 1ms3824kbC++142.0kb2023-11-01 11:24:262023-11-01 11:24:27

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

3 10
0 3 1 6 12
0 3 3 4 100
1 9 2 5 11
3 10
0 3 1 6 12
0 1 3 4 5
1 9 2 5 11
6 5
1 1 17 32 4
0 3 1 18 7
1 3 4 8 12
1 2 15 20 14
1 1 30 33 16
1 4 2 16 13

output:

100
16
42

result:

ok 3 lines

Test #2:

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

input:

7 7
1 4 12 40 10
0 3 22 30 3
1 2 17 38 7
0 4 9 46 4
1 1 20 28 9
0 2 18 39 0
0 3 16 50 9
6 7
0 4 7 42 10
0 4 34 35 8
0 2 24 27 7
1 6 30 36 9
1 4 23 26 1
1 4 14 40 0
1 4
1 2 19 49 6
1 6
1 1 11 49 4
3 6
0 2 30 31 6
1 4 2 17 0
1 2 41 42 8
3 7
1 4 8 22 3
1 4 14 18 5
0 2 32 39 7
10 10
1 6 29 39 8
1 6 21 3...

output:

19
26
6
4
20
12
8
23
25
18
17
16
11
6
21
28
9
23
2
20
21
18
2
15
0
10
1
27
24
35
19
29
27
1
8
16
30
26
20
21
13
32
10
14
18
10
10
27
11
39
23
27
16
16
20
8
14
31
35
18
35
22
9
10
8
14
20
18
17
0
13
12
26
11
10
14
10
18
25
2
3
9
24
22
10
11
4
7
10
9
24
8
28
17
13
25
12
8
18
9
9
10
18
26
3
15
13
8
23
...

result:

wrong answer 2nd lines differ - expected: '17', found: '26'