QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#545585#1188. Estimating the Flood RiskHuangHanShengWA 0ms3716kbC++14703b2024-09-03 15:16:322024-09-03 15:16:35

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

5 4 2
1 1 10
5 4 3

output:

130

result:

ok "130"

Test #2:

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

input:

5 4 3
2 2 0
4 3 0
5 1 2

output:

-14

result:

ok "-14"

Test #3:

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

input:

3 3 2
1 1 8
3 3 3

output:

No

result:

ok "No"

Test #4:

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

input:

2 2 1
1 1 -100

output:

-404

result:

ok "-404"

Test #5:

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

input:

5 4 2
1 1 10
5 4 3

output:

130

result:

ok "130"

Test #6:

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

input:

5 4 3
2 2 0
4 3 0
5 1 2

output:

-14

result:

ok "-14"

Test #7:

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

input:

3 3 2
1 1 8
3 3 3

output:

No

result:

ok "No"

Test #8:

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

input:

3 3 2
1 1 3
3 3 8

output:

No

result:

ok "No"

Test #9:

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

input:

50 50 50
41 31 23
25 13 -7
9 13 -7
8 46 -14
5 38 -19
31 19 4
35 44 8
21 10 -6
16 26 -7
4 28 -14
33 29 13
2 14 -10
12 34 -9
21 48 -9
6 18 -14
27 28 6
13 7 -6
3 49 -7
14 24 -7
29 16 -1
8 19 -14
30 10 -3
30 15 -1
41 15 9
38 39 12
19 19 -3
4 18 -13
4 42 -14
49 27 15
31 34 10
19 10 -8
10 14 -8
42 43 15
4...

output:

-5997

result:

ok "-5997"

Test #10:

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

input:

50 50 50
21 18 36
39 34 64
29 6 27
26 42 65
8 37 60
26 25 48
22 20 39
21 16 35
48 25 59
1 41 66
34 38 56
36 12 39
3 47 72
6 28 55
42 4 42
46 11 44
9 20 46
5 7 39
50 45 68
32 41 60
1 32 60
25 41 63
1 29 58
16 44 59
40 5 39
29 38 59
43 46 71
49 49 69
25 11 34
4 23 53
38 35 63
1 43 68
28 39 60
1 34 61
...

output:

122275

result:

ok "122275"

Test #11:

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

input:

50 50 50
29 19 83
12 42 43
22 42 53
41 28 80
34 3 98
44 38 79
15 11 76
35 10 97
48 50 72
27 45 57
16 16 72
37 8 93
21 18 75
13 43 45
9 43 42
34 42 64
48 47 71
11 31 54
24 45 57
32 14 90
10 35 51
10 13 69
15 42 46
32 12 92
3 12 70
40 23 80
11 40 46
3 18 64
14 14 73
12 32 53
46 49 69
34 29 77
18 21 70...

output:

No

result:

ok "No"

Test #12:

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

input:

50 50 2
1 1 -100
50 50 -100

output:

-330850

result:

ok "-330850"

Test #13:

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

input:

50 50 5
1 1 100
1 50 100
50 1 100
50 50 100
25 25 100

output:

209600

result:

ok "209600"

Test #14:

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

input:

1 1 1
1 1 0

output:

0

result:

ok "0"

Test #15:

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

input:

50 50 1
1 1 -100

output:

-372500

result:

ok "-372500"

Test #16:

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

input:

50 50 2
49 1 -100
50 50 -100

output:

-340050

result:

ok "-340050"

Test #17:

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

input:

33 47 33
26 37 7
17 24 4
12 25 2
31 1 6
13 5 4
21 7 1
3 40 1
30 43 4
26 11 5
1 20 5
27 20 4
23 19 3
21 25 8
17 9 3
14 25 7
29 16 0
24 25 6
2 41 2
24 22 6
13 45 3
20 21 0
25 13 4
15 33 9
13 27 3
8 14 3
31 3 3
9 1 2
27 30 6
33 13 3
31 20 6
20 40 8
3 18 5
27 1 7

output:

No

result:

ok "No"

Test #18:

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

input:

4 12 23
1 12 2
4 7 5
2 9 9
4 2 7
1 2 3
3 7 8
3 4 6
1 4 3
3 12 5
3 1 2
3 10 0
1 6 6
1 9 2
2 1 4
3 6 7
1 8 7
1 7 8
3 9 7
4 8 3
4 4 9
4 11 7
3 5 4
2 8 6

output:

No

result:

ok "No"

Test #19:

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

input:

2 24 39
1 1 9
1 11 9
2 23 0
2 11 7
2 20 5
2 3 9
2 6 8
1 2 3
2 17 1
2 9 6
1 20 0
2 24 7
2 4 2
2 16 0
1 21 0
1 13 5
1 6 1
2 10 7
2 8 1
1 23 4
2 7 7
1 19 3
1 9 3
2 14 7
1 15 7
1 16 5
1 14 6
2 13 2
2 5 3
1 4 7
1 5 4
2 19 6
2 1 1
1 18 3
1 10 2
1 8 5
2 12 3
1 3 4
1 7 6

output:

No

result:

ok "No"

Test #20:

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

input:

42 20 35
24 4 9
37 16 2
17 19 5
36 1 2
2 7 3
11 18 9
41 5 9
4 2 5
2 10 9
18 14 0
12 16 9
32 2 4
41 9 3
30 7 7
7 3 4
40 15 5
17 8 2
6 3 7
7 18 4
17 6 7
23 16 5
42 20 6
41 16 2
4 1 7
24 17 1
3 1 5
28 15 1
2 17 8
33 7 1
1 15 3
29 8 8
40 1 3
4 7 2
18 4 2
27 10 2

output:

No

result:

ok "No"

Test #21:

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

input:

38 17 24
37 7 2
12 5 2
28 10 4
12 15 7
36 2 4
14 8 0
24 5 0
10 5 2
3 9 2
26 4 0
10 3 6
11 15 3
20 3 6
12 14 9
6 7 0
3 16 0
21 7 7
9 10 0
34 12 9
23 13 8
18 5 5
19 15 6
33 4 9
32 17 7

output:

No

result:

ok "No"

Test #22:

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

input:

44 28 38
6 10 4
20 23 2
26 2 2
41 9 8
42 23 3
23 17 2
32 11 0
27 19 7
8 25 1
32 7 9
11 27 4
25 9 8
42 6 0
44 26 7
32 25 3
26 10 3
24 7 4
15 10 2
6 22 3
34 27 5
13 7 3
29 25 1
21 14 6
4 5 4
23 2 9
38 11 0
4 8 1
19 7 0
21 3 8
16 12 3
8 20 0
38 16 6
25 26 5
28 4 9
20 25 6
25 28 6
41 14 4
21 21 6

output:

No

result:

ok "No"

Test #23:

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

input:

2 13 2
2 10 8
1 8 1

output:

No

result:

ok "No"

Test #24:

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

input:

11 44 35
5 27 2
10 11 6
3 36 4
7 27 9
9 40 4
5 26 1
11 43 0
1 35 0
8 11 7
11 15 3
5 34 8
10 42 4
2 26 2
8 7 6
4 20 4
3 13 4
6 7 8
8 33 9
1 41 7
10 38 4
8 27 2
2 28 8
6 19 7
5 8 4
8 38 3
3 24 6
2 44 3
9 37 0
10 12 7
9 9 3
4 39 4
3 5 5
8 29 7
5 43 3
8 9 8

output:

No

result:

ok "No"

Test #25:

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

input:

33 47 42
9 23 1
13 9 4
30 13 8
25 14 2
8 9 4
5 25 3
25 10 5
16 44 3
32 37 7
5 4 3
30 11 8
8 5 8
25 38 2
33 39 3
6 32 5
2 11 8
2 22 1
32 30 4
5 42 2
22 36 5
9 8 3
11 25 3
16 14 1
17 38 7
32 4 2
13 10 3
20 33 7
14 35 7
11 20 1
15 45 4
7 21 7
11 11 1
14 19 6
16 24 1
27 45 4
31 7 2
31 15 1
33 13 1
11 22...

output:

No

result:

ok "No"

Test #26:

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

input:

50 22 5
9 5 -89
46 17 -50
44 1 -62
21 19 -69
15 6 -87

output:

-82543

result:

ok "-82543"

Test #27:

score: -100
Wrong Answer
time: 0ms
memory: 3584kb

input:

13 28 30
8 25 -21
6 9 -34
2 19 -30
7 14 -31
4 10 -35
1 19 -29
2 4 -40
3 19 -31
3 9 -35
10 5 -42
10 7 -40
3 26 -24
4 17 -32
9 4 -41
12 1 -43
1 4 -40
1 9 -36
4 3 -40
8 17 -29
11 28 -24
10 27 -24
10 3 -40
8 18 -28
3 14 -32
6 14 -30
10 14 -33
7 19 -27
9 17 -30
12 15 -30
11 13 -33

output:

-6429

result:

wrong answer 1st words differ - expected: '-11905', found: '-6429'