#include "artclass.h"
#include<bits/stdc++.h>
using namespace std;
int style(int H,int W,
int R[500][500],int G[500][500],int B[500][500]){
long long all = 0;
double ma = 0;
for(int i = 0;i<H;i++){
ma+=G[i][0];
for(int j = 1;j<W;j++){
all+=abs(R[i][j]-R[i][j-1]);
all+=abs(G[i][j]-G[i][j-1]);
ma+=G[i][j];
all+=abs(B[i][j]-B[i][j-1]);
}
}
ma/=double(H*W);
if(ma>=200)return 2;
if(all<=100)return 4;
if(all>=500)return 1;
return 3;
return 1;
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
45 ms |
3908 KB |
Output is correct |
2 |
Incorrect |
31 ms |
3916 KB |
Output isn't correct |
3 |
Incorrect |
29 ms |
2692 KB |
Output isn't correct |
4 |
Incorrect |
46 ms |
3992 KB |
Output isn't correct |
5 |
Incorrect |
27 ms |
2508 KB |
Output isn't correct |
6 |
Incorrect |
25 ms |
3888 KB |
Output isn't correct |
7 |
Correct |
43 ms |
3900 KB |
Output is correct |
8 |
Correct |
39 ms |
3548 KB |
Output is correct |
9 |
Correct |
35 ms |
3528 KB |
Output is correct |
10 |
Incorrect |
26 ms |
3640 KB |
Output isn't correct |
11 |
Correct |
42 ms |
4044 KB |
Output is correct |
12 |
Incorrect |
21 ms |
3924 KB |
Output isn't correct |
13 |
Incorrect |
40 ms |
3620 KB |
Output isn't correct |
14 |
Incorrect |
37 ms |
3356 KB |
Output isn't correct |
15 |
Incorrect |
20 ms |
2252 KB |
Output isn't correct |
16 |
Incorrect |
38 ms |
3484 KB |
Output isn't correct |
17 |
Incorrect |
36 ms |
4044 KB |
Output isn't correct |
18 |
Incorrect |
35 ms |
3924 KB |
Output isn't correct |
19 |
Incorrect |
35 ms |
4064 KB |
Output isn't correct |
20 |
Incorrect |
27 ms |
2856 KB |
Output isn't correct |
21 |
Correct |
46 ms |
4176 KB |
Output is correct |
22 |
Incorrect |
9 ms |
1324 KB |
Output isn't correct |
23 |
Incorrect |
44 ms |
3984 KB |
Output isn't correct |
24 |
Correct |
44 ms |
4064 KB |
Output is correct |
25 |
Incorrect |
36 ms |
4052 KB |
Output isn't correct |
26 |
Correct |
28 ms |
4096 KB |
Output is correct |
27 |
Incorrect |
24 ms |
2668 KB |
Output isn't correct |
28 |
Incorrect |
24 ms |
2504 KB |
Output isn't correct |
29 |
Correct |
46 ms |
3540 KB |
Output is correct |
30 |
Incorrect |
35 ms |
4080 KB |
Output isn't correct |
31 |
Correct |
44 ms |
4144 KB |
Output is correct |
32 |
Incorrect |
36 ms |
3784 KB |
Output isn't correct |
33 |
Incorrect |
45 ms |
3424 KB |
Output isn't correct |
34 |
Correct |
43 ms |
3872 KB |
Output is correct |
35 |
Incorrect |
35 ms |
3556 KB |
Output isn't correct |
36 |
Incorrect |
31 ms |
4096 KB |
Output isn't correct |
37 |
Correct |
40 ms |
3636 KB |
Output is correct |
38 |
Incorrect |
37 ms |
3660 KB |
Output isn't correct |
39 |
Incorrect |
31 ms |
3052 KB |
Output isn't correct |
40 |
Correct |
55 ms |
4064 KB |
Output is correct |
41 |
Incorrect |
34 ms |
3256 KB |
Output isn't correct |
42 |
Incorrect |
19 ms |
2364 KB |
Output isn't correct |
43 |
Incorrect |
35 ms |
3952 KB |
Output isn't correct |
44 |
Incorrect |
29 ms |
3532 KB |
Output isn't correct |
45 |
Correct |
28 ms |
3404 KB |
Output is correct |
46 |
Incorrect |
34 ms |
3376 KB |
Output isn't correct |
47 |
Incorrect |
40 ms |
3572 KB |
Output isn't correct |
48 |
Incorrect |
28 ms |
2584 KB |
Output isn't correct |
49 |
Incorrect |
33 ms |
2920 KB |
Output isn't correct |
50 |
Incorrect |
41 ms |
3880 KB |
Output isn't correct |
51 |
Incorrect |
39 ms |
3528 KB |
Output isn't correct |
52 |
Incorrect |
38 ms |
3152 KB |
Output isn't correct |
53 |
Incorrect |
34 ms |
3432 KB |
Output isn't correct |
54 |
Incorrect |
31 ms |
3888 KB |
Output isn't correct |
55 |
Incorrect |
18 ms |
2368 KB |
Output isn't correct |
56 |
Incorrect |
34 ms |
3344 KB |
Output isn't correct |
57 |
Incorrect |
49 ms |
3788 KB |
Output isn't correct |
58 |
Incorrect |
35 ms |
4044 KB |
Output isn't correct |
59 |
Incorrect |
38 ms |
3432 KB |
Output isn't correct |
60 |
Incorrect |
39 ms |
3916 KB |
Output isn't correct |
61 |
Incorrect |
40 ms |
3964 KB |
Output isn't correct |
62 |
Correct |
44 ms |
3976 KB |
Output is correct |
63 |
Incorrect |
33 ms |
3276 KB |
Output isn't correct |
64 |
Incorrect |
36 ms |
3924 KB |
Output isn't correct |
65 |
Incorrect |
36 ms |
4080 KB |
Output isn't correct |
66 |
Correct |
24 ms |
2636 KB |
Output is correct |
67 |
Incorrect |
34 ms |
4100 KB |
Output isn't correct |
68 |
Incorrect |
38 ms |
3672 KB |
Output isn't correct |
69 |
Incorrect |
30 ms |
3000 KB |
Output isn't correct |
70 |
Incorrect |
34 ms |
3292 KB |
Output isn't correct |
71 |
Incorrect |
39 ms |
3888 KB |
Output isn't correct |
72 |
Incorrect |
39 ms |
3360 KB |
Output isn't correct |
73 |
Incorrect |
36 ms |
3348 KB |
Output isn't correct |
74 |
Incorrect |
34 ms |
3148 KB |
Output isn't correct |
75 |
Incorrect |
36 ms |
3340 KB |
Output isn't correct |
76 |
Incorrect |
41 ms |
4136 KB |
Output isn't correct |
77 |
Incorrect |
27 ms |
4004 KB |
Output isn't correct |
78 |
Incorrect |
33 ms |
3356 KB |
Output isn't correct |
79 |
Incorrect |
25 ms |
4092 KB |
Output isn't correct |
80 |
Incorrect |
13 ms |
3688 KB |
Output isn't correct |
81 |
Incorrect |
35 ms |
4044 KB |
Output isn't correct |
82 |
Incorrect |
33 ms |
3256 KB |
Output isn't correct |
83 |
Incorrect |
38 ms |
4084 KB |
Output isn't correct |
84 |
Incorrect |
34 ms |
2844 KB |
Output isn't correct |
85 |
Incorrect |
29 ms |
3912 KB |
Output isn't correct |
86 |
Incorrect |
31 ms |
3620 KB |
Output isn't correct |
87 |
Incorrect |
28 ms |
3888 KB |
Output isn't correct |
88 |
Incorrect |
39 ms |
3896 KB |
Output isn't correct |
89 |
Incorrect |
40 ms |
3552 KB |
Output isn't correct |
90 |
Incorrect |
32 ms |
3312 KB |
Output isn't correct |
91 |
Correct |
37 ms |
3928 KB |
Output is correct |
92 |
Incorrect |
37 ms |
3220 KB |
Output isn't correct |
93 |
Correct |
43 ms |
3948 KB |
Output is correct |
94 |
Correct |
44 ms |
3428 KB |
Output is correct |
95 |
Incorrect |
44 ms |
3404 KB |
Output isn't correct |
96 |
Correct |
43 ms |
4100 KB |
Output is correct |
97 |
Incorrect |
36 ms |
3588 KB |
Output isn't correct |
98 |
Incorrect |
35 ms |
3508 KB |
Output isn't correct |
99 |
Correct |
42 ms |
3916 KB |
Output is correct |
100 |
Incorrect |
35 ms |
3224 KB |
Output isn't correct |
101 |
Incorrect |
34 ms |
3456 KB |
Output isn't correct |
102 |
Incorrect |
38 ms |
3220 KB |
Output isn't correct |