#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]){
double all = 0;
double ma = 0 , xd = 0;
for(int i = 0;i<H;i++){
ma+=G[i][0];
for(int j = 1;j<W;j++){
xd = xd+1;
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]);
}
}
all/=xd;
if(all<=10)return 4;
if(all<=30)return 1;
if(all<=50)return 2;
return 3;
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
36 ms |
3784 KB |
Output is correct |
2 |
Correct |
33 ms |
4688 KB |
Output is correct |
3 |
Correct |
30 ms |
4700 KB |
Output is correct |
4 |
Correct |
44 ms |
4388 KB |
Output is correct |
5 |
Incorrect |
11 ms |
3644 KB |
Output isn't correct |
6 |
Correct |
44 ms |
4484 KB |
Output is correct |
7 |
Incorrect |
37 ms |
3860 KB |
Output isn't correct |
8 |
Correct |
40 ms |
3944 KB |
Output is correct |
9 |
Incorrect |
38 ms |
4896 KB |
Output isn't correct |
10 |
Correct |
36 ms |
3916 KB |
Output is correct |
11 |
Correct |
43 ms |
5016 KB |
Output is correct |
12 |
Incorrect |
53 ms |
5188 KB |
Output isn't correct |
13 |
Correct |
38 ms |
4520 KB |
Output is correct |
14 |
Correct |
37 ms |
3712 KB |
Output is correct |
15 |
Correct |
27 ms |
4556 KB |
Output is correct |
16 |
Correct |
46 ms |
5892 KB |
Output is correct |
17 |
Incorrect |
45 ms |
4516 KB |
Output isn't correct |
18 |
Incorrect |
37 ms |
3776 KB |
Output isn't correct |
19 |
Correct |
23 ms |
4084 KB |
Output is correct |
20 |
Correct |
36 ms |
4408 KB |
Output is correct |
21 |
Incorrect |
34 ms |
4052 KB |
Output isn't correct |
22 |
Correct |
44 ms |
3980 KB |
Output is correct |
23 |
Correct |
24 ms |
2836 KB |
Output is correct |
24 |
Incorrect |
29 ms |
3660 KB |
Output isn't correct |
25 |
Correct |
44 ms |
5248 KB |
Output is correct |
26 |
Correct |
29 ms |
4524 KB |
Output is correct |
27 |
Correct |
41 ms |
4668 KB |
Output is correct |
28 |
Correct |
35 ms |
5080 KB |
Output is correct |
29 |
Incorrect |
33 ms |
3728 KB |
Output isn't correct |
30 |
Correct |
38 ms |
4632 KB |
Output is correct |
31 |
Correct |
41 ms |
4084 KB |
Output is correct |
32 |
Correct |
24 ms |
2656 KB |
Output is correct |
33 |
Correct |
35 ms |
5068 KB |
Output is correct |
34 |
Correct |
36 ms |
4352 KB |
Output is correct |
35 |
Correct |
32 ms |
3560 KB |
Output is correct |
36 |
Correct |
36 ms |
4156 KB |
Output is correct |
37 |
Correct |
35 ms |
4188 KB |
Output is correct |
38 |
Correct |
37 ms |
4724 KB |
Output is correct |
39 |
Correct |
45 ms |
5100 KB |
Output is correct |
40 |
Correct |
38 ms |
4428 KB |
Output is correct |
41 |
Correct |
35 ms |
4604 KB |
Output is correct |
42 |
Correct |
23 ms |
2756 KB |
Output is correct |
43 |
Incorrect |
34 ms |
3832 KB |
Output isn't correct |
44 |
Correct |
26 ms |
3072 KB |
Output is correct |
45 |
Correct |
40 ms |
4436 KB |
Output is correct |
46 |
Correct |
29 ms |
3168 KB |
Output is correct |
47 |
Correct |
42 ms |
4208 KB |
Output is correct |
48 |
Correct |
29 ms |
4304 KB |
Output is correct |
49 |
Correct |
35 ms |
4812 KB |
Output is correct |
50 |
Correct |
39 ms |
4428 KB |
Output is correct |
51 |
Correct |
30 ms |
4752 KB |
Output is correct |
52 |
Correct |
28 ms |
4564 KB |
Output is correct |
53 |
Correct |
43 ms |
4060 KB |
Output is correct |
54 |
Correct |
32 ms |
3372 KB |
Output is correct |
55 |
Correct |
28 ms |
3316 KB |
Output is correct |
56 |
Correct |
38 ms |
4188 KB |
Output is correct |
57 |
Correct |
20 ms |
2380 KB |
Output is correct |
58 |
Correct |
41 ms |
4696 KB |
Output is correct |
59 |
Correct |
40 ms |
3996 KB |
Output is correct |
60 |
Correct |
46 ms |
4560 KB |
Output is correct |
61 |
Correct |
10 ms |
1364 KB |
Output is correct |
62 |
Correct |
43 ms |
4464 KB |
Output is correct |
63 |
Correct |
32 ms |
4452 KB |
Output is correct |
64 |
Incorrect |
36 ms |
4188 KB |
Output isn't correct |
65 |
Correct |
24 ms |
2588 KB |
Output is correct |
66 |
Correct |
36 ms |
3884 KB |
Output is correct |
67 |
Correct |
39 ms |
4540 KB |
Output is correct |
68 |
Correct |
39 ms |
4500 KB |
Output is correct |
69 |
Correct |
32 ms |
4428 KB |
Output is correct |
70 |
Incorrect |
41 ms |
4836 KB |
Output isn't correct |
71 |
Correct |
20 ms |
2044 KB |
Output is correct |
72 |
Correct |
50 ms |
4452 KB |
Output is correct |
73 |
Correct |
40 ms |
4428 KB |
Output is correct |
74 |
Correct |
46 ms |
5004 KB |
Output is correct |
75 |
Incorrect |
37 ms |
3912 KB |
Output isn't correct |
76 |
Correct |
20 ms |
2016 KB |
Output is correct |
77 |
Correct |
40 ms |
4032 KB |
Output is correct |
78 |
Correct |
40 ms |
4044 KB |
Output is correct |
79 |
Correct |
37 ms |
4724 KB |
Output is correct |
80 |
Correct |
44 ms |
4036 KB |
Output is correct |
81 |
Incorrect |
36 ms |
4392 KB |
Output isn't correct |
82 |
Correct |
36 ms |
5068 KB |
Output is correct |
83 |
Correct |
30 ms |
4556 KB |
Output is correct |
84 |
Correct |
33 ms |
4776 KB |
Output is correct |
85 |
Correct |
45 ms |
4648 KB |
Output is correct |
86 |
Correct |
34 ms |
3916 KB |
Output is correct |
87 |
Correct |
27 ms |
4164 KB |
Output is correct |
88 |
Correct |
25 ms |
4388 KB |
Output is correct |
89 |
Correct |
45 ms |
4516 KB |
Output is correct |
90 |
Correct |
37 ms |
5080 KB |
Output is correct |
91 |
Incorrect |
47 ms |
4568 KB |
Output isn't correct |
92 |
Correct |
37 ms |
3772 KB |
Output is correct |
93 |
Correct |
31 ms |
4496 KB |
Output is correct |
94 |
Incorrect |
36 ms |
4676 KB |
Output isn't correct |
95 |
Correct |
44 ms |
5064 KB |
Output is correct |
96 |
Correct |
37 ms |
4104 KB |
Output is correct |
97 |
Correct |
36 ms |
4940 KB |
Output is correct |
98 |
Correct |
46 ms |
4424 KB |
Output is correct |
99 |
Incorrect |
50 ms |
4680 KB |
Output isn't correct |
100 |
Correct |
52 ms |
4800 KB |
Output is correct |
101 |
Correct |
35 ms |
3660 KB |
Output is correct |
102 |
Incorrect |
35 ms |
3740 KB |
Output isn't correct |