#include "artclass.h"
#include <algorithm>
#include <iostream>
#include <iomanip>
#include <numeric>
#include <cassert>
#include <vector>
typedef long long llong;
const int MAXN = 500;
const int INF = 1e9;
int style(int H, int W, int R[500][500], int G[500][500], int B[500][500])
{
llong sum = 0;
llong green = 0;
for (int i = 0 ; i < MAXN ; ++i)
{
for (int j = 0 ; j < MAXN ; ++j)
{
sum += R[i][j];
sum += G[i][j];
sum += B[i][j];
green += G[i][j];
}
}
double ratio = (double)green / sum;
if (ratio > 0.3) return 2;
return 0;
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
37 ms |
4936 KB |
Output is correct |
2 |
Incorrect |
27 ms |
4636 KB |
Output isn't correct |
3 |
Incorrect |
35 ms |
4516 KB |
Output isn't correct |
4 |
Correct |
35 ms |
4588 KB |
Output is correct |
5 |
Incorrect |
33 ms |
5068 KB |
Output isn't correct |
6 |
Incorrect |
35 ms |
4556 KB |
Output isn't correct |
7 |
Correct |
33 ms |
4300 KB |
Output is correct |
8 |
Incorrect |
44 ms |
5896 KB |
Output isn't correct |
9 |
Incorrect |
18 ms |
2348 KB |
Output isn't correct |
10 |
Incorrect |
27 ms |
3660 KB |
Output isn't correct |
11 |
Incorrect |
27 ms |
4716 KB |
Output isn't correct |
12 |
Incorrect |
28 ms |
4928 KB |
Output isn't correct |
13 |
Incorrect |
38 ms |
5320 KB |
Output isn't correct |
14 |
Correct |
32 ms |
4320 KB |
Output is correct |
15 |
Incorrect |
38 ms |
4032 KB |
Output isn't correct |
16 |
Incorrect |
44 ms |
6028 KB |
Output isn't correct |
17 |
Incorrect |
37 ms |
5704 KB |
Output isn't correct |
18 |
Incorrect |
36 ms |
5480 KB |
Output isn't correct |
19 |
Incorrect |
31 ms |
5048 KB |
Output isn't correct |
20 |
Correct |
35 ms |
5224 KB |
Output is correct |
21 |
Correct |
35 ms |
5068 KB |
Output is correct |
22 |
Incorrect |
23 ms |
2956 KB |
Output isn't correct |
23 |
Incorrect |
42 ms |
5412 KB |
Output isn't correct |
24 |
Incorrect |
33 ms |
5324 KB |
Output isn't correct |
25 |
Correct |
35 ms |
5072 KB |
Output is correct |
26 |
Incorrect |
37 ms |
4964 KB |
Output isn't correct |
27 |
Correct |
33 ms |
4620 KB |
Output is correct |
28 |
Incorrect |
23 ms |
3088 KB |
Output isn't correct |
29 |
Correct |
41 ms |
4840 KB |
Output is correct |
30 |
Incorrect |
37 ms |
5100 KB |
Output isn't correct |
31 |
Incorrect |
50 ms |
5244 KB |
Output isn't correct |
32 |
Incorrect |
43 ms |
6092 KB |
Output isn't correct |
33 |
Incorrect |
37 ms |
5284 KB |
Output isn't correct |
34 |
Incorrect |
26 ms |
3284 KB |
Output isn't correct |
35 |
Incorrect |
44 ms |
6020 KB |
Output isn't correct |
36 |
Incorrect |
34 ms |
5320 KB |
Output isn't correct |
37 |
Correct |
34 ms |
4788 KB |
Output is correct |
38 |
Correct |
22 ms |
3004 KB |
Output is correct |
39 |
Incorrect |
35 ms |
5312 KB |
Output isn't correct |
40 |
Incorrect |
34 ms |
4352 KB |
Output isn't correct |
41 |
Incorrect |
42 ms |
5836 KB |
Output isn't correct |
42 |
Incorrect |
42 ms |
5600 KB |
Output isn't correct |
43 |
Correct |
36 ms |
4512 KB |
Output is correct |
44 |
Incorrect |
27 ms |
4648 KB |
Output isn't correct |
45 |
Incorrect |
39 ms |
5352 KB |
Output isn't correct |
46 |
Incorrect |
37 ms |
5188 KB |
Output isn't correct |
47 |
Incorrect |
42 ms |
5856 KB |
Output isn't correct |
48 |
Incorrect |
34 ms |
4388 KB |
Output isn't correct |
49 |
Correct |
49 ms |
4868 KB |
Output is correct |
50 |
Correct |
40 ms |
4912 KB |
Output is correct |
51 |
Correct |
35 ms |
5432 KB |
Output is correct |
52 |
Correct |
37 ms |
4696 KB |
Output is correct |
53 |
Correct |
32 ms |
4380 KB |
Output is correct |
54 |
Incorrect |
42 ms |
5228 KB |
Output isn't correct |
55 |
Incorrect |
36 ms |
5280 KB |
Output isn't correct |
56 |
Incorrect |
42 ms |
5836 KB |
Output isn't correct |
57 |
Correct |
47 ms |
4716 KB |
Output is correct |
58 |
Incorrect |
26 ms |
4636 KB |
Output isn't correct |
59 |
Incorrect |
41 ms |
4916 KB |
Output isn't correct |
60 |
Incorrect |
43 ms |
4812 KB |
Output isn't correct |
61 |
Incorrect |
38 ms |
4656 KB |
Output isn't correct |
62 |
Incorrect |
33 ms |
4412 KB |
Output isn't correct |
63 |
Correct |
32 ms |
4208 KB |
Output is correct |
64 |
Incorrect |
29 ms |
4780 KB |
Output isn't correct |
65 |
Incorrect |
29 ms |
4568 KB |
Output isn't correct |
66 |
Incorrect |
43 ms |
5956 KB |
Output isn't correct |
67 |
Incorrect |
37 ms |
5244 KB |
Output isn't correct |
68 |
Incorrect |
11 ms |
3668 KB |
Output isn't correct |
69 |
Incorrect |
18 ms |
2432 KB |
Output isn't correct |
70 |
Incorrect |
40 ms |
5580 KB |
Output isn't correct |
71 |
Incorrect |
43 ms |
5932 KB |
Output isn't correct |
72 |
Incorrect |
31 ms |
4300 KB |
Output isn't correct |
73 |
Correct |
35 ms |
5264 KB |
Output is correct |
74 |
Correct |
34 ms |
5044 KB |
Output is correct |
75 |
Incorrect |
21 ms |
4404 KB |
Output isn't correct |
76 |
Incorrect |
24 ms |
4680 KB |
Output isn't correct |
77 |
Incorrect |
27 ms |
3704 KB |
Output isn't correct |
78 |
Incorrect |
35 ms |
5184 KB |
Output isn't correct |
79 |
Correct |
34 ms |
4284 KB |
Output is correct |
80 |
Incorrect |
33 ms |
5016 KB |
Output isn't correct |
81 |
Incorrect |
41 ms |
5396 KB |
Output isn't correct |
82 |
Incorrect |
28 ms |
4892 KB |
Output isn't correct |
83 |
Incorrect |
35 ms |
5228 KB |
Output isn't correct |
84 |
Incorrect |
39 ms |
5348 KB |
Output isn't correct |
85 |
Incorrect |
40 ms |
5708 KB |
Output isn't correct |
86 |
Incorrect |
12 ms |
1436 KB |
Output isn't correct |
87 |
Incorrect |
29 ms |
5064 KB |
Output isn't correct |
88 |
Incorrect |
20 ms |
2540 KB |
Output isn't correct |
89 |
Correct |
29 ms |
4784 KB |
Output is correct |
90 |
Incorrect |
39 ms |
5324 KB |
Output isn't correct |
91 |
Incorrect |
41 ms |
5888 KB |
Output isn't correct |
92 |
Incorrect |
31 ms |
5020 KB |
Output isn't correct |
93 |
Incorrect |
23 ms |
3028 KB |
Output isn't correct |
94 |
Incorrect |
43 ms |
5880 KB |
Output isn't correct |
95 |
Correct |
31 ms |
4172 KB |
Output is correct |
96 |
Incorrect |
49 ms |
5680 KB |
Output isn't correct |
97 |
Correct |
33 ms |
4300 KB |
Output is correct |
98 |
Correct |
34 ms |
4476 KB |
Output is correct |
99 |
Incorrect |
26 ms |
3532 KB |
Output isn't correct |
100 |
Correct |
27 ms |
3788 KB |
Output is correct |
101 |
Incorrect |
33 ms |
5156 KB |
Output isn't correct |
102 |
Incorrect |
41 ms |
5776 KB |
Output isn't correct |