#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]){
int val=0;
for (int i=0;i<H;i++)
for (int j=0;j<W-1;j++)
val+=(abs(R[i][j]-R[i][j+1])+abs(G[i][j]-G[i][j+1])+abs(B[i][j]-B[i][j+1]));
val/=H*(W-1);
return (val<10?4:(val<21?1:(val<33?2:3)));
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
17 ms |
3676 KB |
Output is correct |
2 |
Correct |
31 ms |
5180 KB |
Output is correct |
3 |
Correct |
33 ms |
5204 KB |
Output is correct |
4 |
Incorrect |
41 ms |
5520 KB |
Output isn't correct |
5 |
Incorrect |
10 ms |
3712 KB |
Output isn't correct |
6 |
Correct |
34 ms |
5380 KB |
Output is correct |
7 |
Incorrect |
37 ms |
5180 KB |
Output isn't correct |
8 |
Incorrect |
37 ms |
5208 KB |
Output isn't correct |
9 |
Correct |
9 ms |
3164 KB |
Output is correct |
10 |
Correct |
25 ms |
4700 KB |
Output is correct |
11 |
Correct |
45 ms |
5716 KB |
Output is correct |
12 |
Correct |
31 ms |
5068 KB |
Output is correct |
13 |
Correct |
22 ms |
3932 KB |
Output is correct |
14 |
Correct |
33 ms |
5076 KB |
Output is correct |
15 |
Correct |
35 ms |
5456 KB |
Output is correct |
16 |
Incorrect |
32 ms |
4884 KB |
Output isn't correct |
17 |
Incorrect |
33 ms |
4692 KB |
Output isn't correct |
18 |
Correct |
34 ms |
5188 KB |
Output is correct |
19 |
Correct |
22 ms |
4188 KB |
Output is correct |
20 |
Correct |
36 ms |
5204 KB |
Output is correct |
21 |
Incorrect |
34 ms |
5148 KB |
Output isn't correct |
22 |
Correct |
40 ms |
5424 KB |
Output is correct |
23 |
Correct |
23 ms |
4188 KB |
Output is correct |
24 |
Correct |
33 ms |
5336 KB |
Output is correct |
25 |
Incorrect |
36 ms |
5212 KB |
Output isn't correct |
26 |
Correct |
29 ms |
4444 KB |
Output is correct |
27 |
Correct |
37 ms |
5460 KB |
Output is correct |
28 |
Incorrect |
40 ms |
5648 KB |
Output isn't correct |
29 |
Correct |
42 ms |
5716 KB |
Output is correct |
30 |
Correct |
42 ms |
5460 KB |
Output is correct |
31 |
Correct |
33 ms |
5712 KB |
Output is correct |
32 |
Correct |
33 ms |
4944 KB |
Output is correct |
33 |
Correct |
41 ms |
5968 KB |
Output is correct |
34 |
Correct |
37 ms |
5724 KB |
Output is correct |
35 |
Correct |
26 ms |
4768 KB |
Output is correct |
36 |
Incorrect |
42 ms |
5976 KB |
Output isn't correct |
37 |
Correct |
31 ms |
4948 KB |
Output is correct |
38 |
Correct |
26 ms |
4688 KB |
Output is correct |
39 |
Correct |
33 ms |
5284 KB |
Output is correct |
40 |
Correct |
37 ms |
5824 KB |
Output is correct |
41 |
Correct |
25 ms |
4700 KB |
Output is correct |
42 |
Incorrect |
22 ms |
4176 KB |
Output isn't correct |
43 |
Correct |
33 ms |
5496 KB |
Output is correct |
44 |
Incorrect |
42 ms |
6156 KB |
Output isn't correct |
45 |
Correct |
41 ms |
5972 KB |
Output is correct |
46 |
Correct |
42 ms |
6028 KB |
Output is correct |
47 |
Correct |
35 ms |
5100 KB |
Output is correct |
48 |
Correct |
36 ms |
5456 KB |
Output is correct |
49 |
Correct |
27 ms |
4956 KB |
Output is correct |
50 |
Incorrect |
26 ms |
4688 KB |
Output isn't correct |
51 |
Correct |
37 ms |
5384 KB |
Output is correct |
52 |
Correct |
27 ms |
4432 KB |
Output is correct |
53 |
Correct |
26 ms |
4692 KB |
Output is correct |
54 |
Correct |
27 ms |
4440 KB |
Output is correct |
55 |
Correct |
32 ms |
4948 KB |
Output is correct |
56 |
Correct |
28 ms |
4948 KB |
Output is correct |
57 |
Incorrect |
40 ms |
5644 KB |
Output isn't correct |
58 |
Correct |
33 ms |
4960 KB |
Output is correct |
59 |
Correct |
33 ms |
5180 KB |
Output is correct |
60 |
Incorrect |
46 ms |
5884 KB |
Output isn't correct |
61 |
Correct |
23 ms |
4700 KB |
Output is correct |
62 |
Correct |
32 ms |
4956 KB |
Output is correct |
63 |
Correct |
27 ms |
4412 KB |
Output is correct |
64 |
Correct |
28 ms |
5232 KB |
Output is correct |
65 |
Correct |
18 ms |
3672 KB |
Output is correct |
66 |
Correct |
32 ms |
5004 KB |
Output is correct |
67 |
Correct |
32 ms |
5424 KB |
Output is correct |
68 |
Incorrect |
29 ms |
4956 KB |
Output isn't correct |
69 |
Incorrect |
34 ms |
5204 KB |
Output isn't correct |
70 |
Incorrect |
35 ms |
5456 KB |
Output isn't correct |
71 |
Correct |
42 ms |
5972 KB |
Output is correct |
72 |
Correct |
39 ms |
5456 KB |
Output is correct |
73 |
Correct |
34 ms |
5176 KB |
Output is correct |
74 |
Correct |
33 ms |
5200 KB |
Output is correct |
75 |
Correct |
32 ms |
4956 KB |
Output is correct |
76 |
Correct |
42 ms |
6032 KB |
Output is correct |
77 |
Incorrect |
36 ms |
5260 KB |
Output isn't correct |
78 |
Correct |
20 ms |
4440 KB |
Output is correct |
79 |
Correct |
35 ms |
5632 KB |
Output is correct |
80 |
Correct |
34 ms |
5160 KB |
Output is correct |
81 |
Incorrect |
35 ms |
4948 KB |
Output isn't correct |
82 |
Correct |
30 ms |
4688 KB |
Output is correct |
83 |
Correct |
19 ms |
3676 KB |
Output is correct |
84 |
Correct |
31 ms |
4732 KB |
Output is correct |
85 |
Incorrect |
42 ms |
5824 KB |
Output isn't correct |
86 |
Incorrect |
35 ms |
5432 KB |
Output isn't correct |
87 |
Incorrect |
31 ms |
4684 KB |
Output isn't correct |
88 |
Correct |
42 ms |
5972 KB |
Output is correct |
89 |
Correct |
39 ms |
5460 KB |
Output is correct |
90 |
Incorrect |
32 ms |
4692 KB |
Output isn't correct |
91 |
Correct |
30 ms |
4956 KB |
Output is correct |
92 |
Correct |
23 ms |
4188 KB |
Output is correct |
93 |
Incorrect |
43 ms |
6000 KB |
Output isn't correct |
94 |
Incorrect |
33 ms |
4956 KB |
Output isn't correct |
95 |
Correct |
29 ms |
5068 KB |
Output is correct |
96 |
Correct |
34 ms |
5464 KB |
Output is correct |
97 |
Correct |
34 ms |
5028 KB |
Output is correct |
98 |
Incorrect |
35 ms |
5200 KB |
Output isn't correct |
99 |
Incorrect |
41 ms |
5712 KB |
Output isn't correct |
100 |
Correct |
32 ms |
5436 KB |
Output is correct |
101 |
Incorrect |
34 ms |
4948 KB |
Output isn't correct |
102 |
Correct |
32 ms |
5200 KB |
Output is correct |