QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#794575 | #1800. Beer Vision | I_be_wanna | AC ✓ | 8ms | 4116kb | C++20 | 853b | 2024-11-30 14:58:51 | 2024-11-30 14:59:00 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
map<pair<int,int>,int>m,M;//m记录点,M记录向量
int n,vx,vy,x[1005],y[1005],ans=0;
int check(){//检查点变换后是否还在图上
for(int i=1;i<n;i++)
{
if(m[make_pair(x[i]+vx,y[i]+vy)]==0 && m[make_pair(x[i]-vx,y[i]-vy)]==0) return 0;
}
return 1;
}
int main(){
cin>>n;
for(int i=0;i<n;i++){
scanf("%d%d",&x[i],&y[i]);
m[make_pair(x[i],y[i])]=1;
}
for(int i=1;i<n;i++){
vx=x[i]-x[0],vy=y[i]-y[0];
if(!M[make_pair(vx,vy)] && check()) ans++;
M[make_pair(vx,vy)]=1;
if(!M[make_pair(-vx,-vy)]){//判断相反向量
vx=-vx,vy=-vy;
M[make_pair(vx,vy)]=1;
if(check()) ans++;
}
}
cout<<ans;
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 0ms
memory: 3748kb
input:
4 0 1 -1 0 1 0 0 -1
output:
4
result:
ok single line: '4'
Test #2:
score: 0
Accepted
time: 0ms
memory: 3752kb
input:
5 1 0 2 0 3 0 4 0 5 0
output:
4
result:
ok single line: '4'
Test #3:
score: 0
Accepted
time: 0ms
memory: 3808kb
input:
1 0 0
output:
0
result:
ok single line: '0'
Test #4:
score: 0
Accepted
time: 0ms
memory: 3832kb
input:
2 1000 1000 -1000 -1000
output:
2
result:
ok single line: '2'
Test #5:
score: 0
Accepted
time: 0ms
memory: 3792kb
input:
16 1 1 1 2 1 3 1 4 2 1 2 2 2 3 2 4 3 1 3 2 3 3 3 4 4 1 4 2 4 3 4 4
output:
8
result:
ok single line: '8'
Test #6:
score: 0
Accepted
time: 0ms
memory: 3796kb
input:
25 -10 46 -7 45 -11 42 -11 44 -9 45 -7 43 -9 42 -8 45 -10 42 -9 46 -9 44 -8 44 -11 45 -8 42 -10 44 -10 45 -11 46 -7 44 -10 43 -7 42 -11 43 -8 46 -9 43 -7 46 -8 43
output:
8
result:
ok single line: '8'
Test #7:
score: 0
Accepted
time: 0ms
memory: 3676kb
input:
36 -57 -86 -57 -89 -56 -91 -58 -90 -55 -86 -56 -90 -59 -89 -57 -88 -59 -86 -57 -90 -60 -90 -57 -91 -59 -88 -55 -89 -55 -88 -56 -89 -55 -91 -59 -90 -56 -86 -59 -91 -60 -87 -58 -91 -56 -87 -58 -88 -58 -87 -58 -86 -55 -90 -56 -88 -59 -87 -60 -89 -55 -87 -60 -91 -60 -86 -60 -88 -57 -87 -58 -89
output:
12
result:
ok single line: '12'
Test #8:
score: 0
Accepted
time: 1ms
memory: 3864kb
input:
49 13 79 13 82 15 84 14 81 16 80 16 83 14 85 15 81 13 85 16 79 19 81 18 83 17 80 17 83 15 79 14 84 16 81 13 80 18 84 15 85 14 82 15 82 16 84 17 82 18 82 18 79 19 85 19 80 19 84 19 82 14 80 16 82 17 84 13 84 15 83 13 83 17 79 17 81 18 80 16 85 18 85 17 85 13 81 18 81 19 83 15 80 14 79 19 79 14 83
output:
12
result:
ok single line: '12'
Test #9:
score: 0
Accepted
time: 1ms
memory: 3828kb
input:
64 -35 36 -31 36 -28 40 -29 34 -33 37 -32 35 -33 39 -30 35 -28 39 -30 34 -31 33 -32 33 -29 35 -32 39 -29 36 -30 37 -31 35 -28 37 -31 37 -33 38 -35 40 -32 38 -33 36 -33 35 -31 38 -30 39 -34 38 -30 36 -29 40 -35 38 -34 37 -32 40 -34 34 -31 40 -29 33 -31 39 -33 34 -28 34 -33 40 -30 40 -32 36 -35 34 -28...
output:
16
result:
ok single line: '16'
Test #10:
score: 0
Accepted
time: 1ms
memory: 3684kb
input:
81 86 -11 78 -12 83 -11 79 -7 84 -12 83 -15 84 -13 80 -12 83 -13 85 -10 85 -11 85 -15 80 -13 80 -8 86 -8 86 -15 86 -14 79 -9 79 -11 82 -12 84 -14 79 -8 79 -12 81 -13 85 -7 79 -10 79 -14 86 -7 82 -11 78 -14 78 -13 85 -14 80 -15 83 -7 79 -13 84 -15 78 -9 81 -12 80 -14 85 -12 83 -10 80 -7 81 -11 82 -10...
output:
16
result:
ok single line: '16'
Test #11:
score: 0
Accepted
time: 0ms
memory: 3896kb
input:
100 62 72 59 72 63 64 59 71 65 67 64 66 65 65 60 64 63 70 58 67 64 67 66 70 57 67 59 70 59 67 63 67 62 67 66 66 60 68 60 63 59 68 62 71 66 71 59 64 58 72 65 71 59 63 59 66 58 68 63 72 65 66 66 72 65 69 65 70 59 65 58 65 60 67 62 65 64 70 64 63 65 63 57 65 66 67 64 65 57 71 64 69 64 68 60 65 58 66 61...
output:
20
result:
ok single line: '20'
Test #12:
score: 0
Accepted
time: 1ms
memory: 3840kb
input:
121 7 97 6 102 8 101 6 106 3 96 3 104 8 99 11 106 7 96 11 103 8 103 6 105 11 98 5 97 9 100 7 106 5 98 10 98 3 105 11 101 10 99 10 105 7 105 4 100 3 98 4 98 5 101 2 100 10 97 6 96 1 106 2 99 2 103 10 100 9 105 1 97 5 104 10 104 9 99 5 105 9 97 8 106 8 104 3 97 11 97 1 104 10 96 7 100 6 98 3 100 7 102...
output:
20
result:
ok single line: '20'
Test #13:
score: 0
Accepted
time: 1ms
memory: 3904kb
input:
144 98 -58 99 -58 104 -65 97 -61 97 -57 97 -58 100 -66 103 -57 103 -67 100 -56 105 -66 96 -58 103 -60 98 -59 94 -63 97 -67 94 -56 99 -60 96 -57 96 -66 96 -64 95 -64 103 -59 95 -60 101 -58 104 -62 95 -63 101 -62 97 -63 95 -66 101 -63 104 -56 98 -64 98 -65 102 -57 96 -59 101 -66 97 -66 95 -56 105 -58 ...
output:
24
result:
ok single line: '24'
Test #14:
score: 0
Accepted
time: 1ms
memory: 3660kb
input:
169 66 -95 66 -92 61 -94 73 -94 62 -94 66 -94 62 -83 71 -88 66 -84 72 -87 69 -88 73 -90 70 -83 64 -87 73 -93 64 -83 72 -88 62 -91 62 -92 67 -83 63 -91 69 -90 66 -89 70 -95 63 -83 62 -93 68 -84 66 -88 63 -88 72 -83 68 -93 70 -94 61 -95 63 -93 66 -87 67 -95 69 -91 70 -84 69 -87 71 -89 71 -91 63 -90 61...
output:
24
result:
ok single line: '24'
Test #15:
score: 0
Accepted
time: 1ms
memory: 3916kb
input:
196 33 -35 40 -35 32 -26 41 -31 43 -26 36 -32 37 -37 41 -37 33 -36 31 -36 43 -29 41 -29 41 -35 37 -33 44 -34 39 -26 38 -35 44 -35 33 -26 32 -39 42 -30 35 -38 31 -29 38 -38 34 -34 37 -28 31 -26 35 -35 36 -38 37 -38 34 -35 35 -31 40 -31 33 -31 42 -34 41 -33 33 -30 35 -39 32 -33 36 -35 38 -30 42 -28 37...
output:
28
result:
ok single line: '28'
Test #16:
score: 0
Accepted
time: 1ms
memory: 3868kb
input:
225 63 7 66 -5 69 1 70 -6 71 -3 66 5 57 5 63 -5 65 -4 67 -6 69 -3 68 -1 61 8 67 4 67 2 63 2 68 7 58 -1 58 7 68 -4 60 4 59 -2 65 -5 59 1 68 -3 57 1 63 -2 66 8 60 -1 65 -1 69 3 62 1 57 -5 61 2 69 2 66 3 59 7 61 0 64 -1 68 0 59 0 71 5 63 -6 60 0 57 3 67 6 70 8 63 3 60 8 57 -2 62 -2 67 -2 63 4 64 3 58 2...
output:
28
result:
ok single line: '28'
Test #17:
score: 0
Accepted
time: 2ms
memory: 3844kb
input:
256 38 0 31 -8 39 0 41 -11 40 3 34 -5 33 -8 42 -4 39 -2 32 -6 37 -8 43 -1 38 -5 40 -4 39 -8 37 4 37 1 33 -10 32 -5 45 -5 36 -7 46 -1 40 -2 39 -6 44 1 33 1 31 0 32 -7 38 -2 37 3 41 1 43 -4 42 -3 46 -3 35 -1 32 4 37 -7 45 3 45 -7 34 4 35 -4 46 -6 42 -11 35 -9 42 3 35 -7 37 -5 46 -10 31 -11 32 2 45 -3 ...
output:
32
result:
ok single line: '32'
Test #18:
score: 0
Accepted
time: 2ms
memory: 3888kb
input:
289 -6 52 -11 54 -14 53 -16 57 -3 50 -4 51 -17 49 -16 51 -5 48 -3 53 -14 61 -5 50 -16 58 -16 50 -13 55 -3 61 -8 49 -9 45 -6 49 -9 56 -13 58 -8 55 -13 60 -7 47 -4 59 -6 48 -16 55 -1 50 -7 57 -9 61 -14 48 -11 57 -14 60 -7 53 -5 61 -17 50 -13 49 -11 52 -14 49 -8 48 -16 53 -14 51 -2 52 -12 54 -9 49 -10 ...
output:
32
result:
ok single line: '32'
Test #19:
score: 0
Accepted
time: 2ms
memory: 3964kb
input:
324 35 24 38 38 31 35 44 32 42 38 38 28 29 25 45 28 41 31 34 25 38 30 43 37 44 36 42 26 32 35 29 21 29 31 30 34 30 26 42 25 33 37 33 26 38 37 43 24 30 33 40 30 31 30 40 31 32 26 30 25 41 21 35 25 36 36 46 23 32 31 34 22 31 32 31 37 34 35 36 31 45 22 46 35 41 23 39 26 33 34 33 30 43 36 38 35 45 26 32...
output:
36
result:
ok single line: '36'
Test #20:
score: 0
Accepted
time: 0ms
memory: 3736kb
input:
361 -54 -70 -41 -52 -45 -60 -41 -69 -40 -59 -40 -67 -57 -68 -56 -68 -44 -58 -45 -67 -50 -70 -54 -64 -45 -61 -47 -59 -42 -54 -56 -60 -54 -67 -57 -69 -57 -58 -54 -54 -50 -53 -49 -68 -52 -69 -52 -68 -44 -66 -55 -57 -43 -64 -53 -52 -54 -61 -40 -68 -41 -58 -46 -68 -43 -70 -40 -62 -49 -64 -48 -62 -48 -66 ...
output:
36
result:
ok single line: '36'
Test #21:
score: 0
Accepted
time: 2ms
memory: 3936kb
input:
400 -67 83 -71 75 -78 88 -62 72 -72 74 -67 75 -61 88 -66 70 -78 74 -66 74 -62 89 -72 77 -75 72 -68 76 -60 74 -77 78 -71 79 -73 84 -78 72 -63 82 -77 86 -64 79 -71 84 -69 89 -76 80 -70 72 -79 79 -65 73 -66 71 -79 72 -64 80 -77 79 -75 84 -70 82 -73 71 -74 78 -68 84 -63 87 -79 88 -73 80 -74 80 -68 73 -6...
output:
40
result:
ok single line: '40'
Test #22:
score: 0
Accepted
time: 3ms
memory: 3972kb
input:
441 -20 -7 0 -25 -20 -15 -6 -19 -15 -12 -2 -16 -12 -21 -2 -23 -1 -22 -2 -22 -14 -13 -16 -19 -20 -9 -13 -12 -5 -26 -9 -22 -17 -15 -4 -24 -10 -15 -19 -13 -14 -20 -3 -16 -19 -24 -10 -24 -19 -16 -2 -11 -18 -25 -18 -26 -2 -10 -11 -15 -9 -16 -17 -9 -16 -26 -7 -26 -8 -14 -17 -24 -1 -12 -20 -23 -2 -17 -15 -...
output:
40
result:
ok single line: '40'
Test #23:
score: 0
Accepted
time: 3ms
memory: 4036kb
input:
484 28 111 41 104 29 115 33 107 23 96 39 94 22 100 28 96 35 108 42 107 41 105 38 111 28 109 24 95 22 95 32 94 35 102 24 114 33 105 31 107 27 108 37 105 22 106 33 108 29 94 36 110 36 97 22 96 38 103 43 108 27 97 25 103 27 106 30 111 25 102 40 102 39 104 43 112 28 99 24 97 32 103 39 112 23 104 42 115 ...
output:
44
result:
ok single line: '44'
Test #24:
score: 0
Accepted
time: 4ms
memory: 3896kb
input:
529 -32 5 -33 15 -26 3 -35 10 -31 23 -34 3 -37 21 -32 8 -38 5 -35 12 -29 9 -44 14 -41 20 -26 10 -33 21 -34 20 -36 15 -24 21 -41 12 -44 5 -42 21 -24 8 -30 24 -45 15 -42 8 -30 16 -39 12 -38 22 -43 9 -34 19 -24 4 -39 9 -33 3 -33 10 -31 9 -28 23 -25 13 -24 24 -44 7 -29 13 -23 21 -35 8 -38 23 -45 8 -28 2...
output:
44
result:
ok single line: '44'
Test #25:
score: 0
Accepted
time: 4ms
memory: 4068kb
input:
576 117 -14 105 2 97 -13 96 -3 114 2 116 -5 100 -2 104 -17 110 -15 110 -18 112 -18 99 4 103 -13 110 -7 114 -11 106 -3 111 5 98 -13 111 -3 104 -6 111 -16 106 -9 114 -8 101 -7 102 -16 98 -5 95 -4 110 -9 100 -13 104 -18 114 -5 111 -6 113 -11 110 -13 96 -12 107 -17 97 0 95 -2 99 -8 96 -17 97 -7 105 -18 ...
output:
48
result:
ok single line: '48'
Test #26:
score: 0
Accepted
time: 5ms
memory: 3944kb
input:
625 29 -67 37 -58 35 -58 26 -61 42 -53 34 -62 26 -67 37 -59 28 -61 33 -52 35 -49 36 -62 36 -59 20 -65 41 -71 25 -49 37 -63 43 -52 39 -68 43 -62 43 -65 44 -73 34 -68 20 -59 20 -56 28 -69 25 -53 37 -54 34 -65 23 -51 23 -59 35 -71 37 -61 32 -69 34 -61 40 -62 27 -55 44 -60 31 -61 23 -54 22 -68 42 -60 38...
output:
48
result:
ok single line: '48'
Test #27:
score: 0
Accepted
time: 5ms
memory: 3980kb
input:
676 -55 52 -47 50 -41 35 -62 45 -59 30 -53 33 -58 29 -57 35 -46 40 -41 36 -57 51 -58 51 -61 48 -42 40 -48 48 -56 42 -51 30 -47 48 -44 53 -52 49 -57 33 -52 46 -58 37 -44 40 -57 48 -62 33 -37 32 -41 49 -47 53 -52 53 -53 35 -55 53 -47 31 -46 50 -49 37 -62 39 -44 48 -42 32 -38 54 -37 48 -47 35 -38 33 -4...
output:
52
result:
ok single line: '52'
Test #28:
score: 0
Accepted
time: 2ms
memory: 3988kb
input:
729 26 104 40 103 21 110 28 111 44 88 32 110 24 96 34 93 41 108 31 91 24 110 33 96 41 94 30 110 30 109 39 94 35 93 18 105 37 94 29 104 43 111 20 99 19 107 31 97 30 106 31 110 41 99 27 109 43 92 40 92 22 95 33 90 39 90 41 104 42 103 30 101 35 98 34 98 32 92 20 100 37 105 32 85 34 100 18 93 44 106 32 ...
output:
52
result:
ok single line: '52'
Test #29:
score: 0
Accepted
time: 7ms
memory: 3824kb
input:
784 24 -25 25 -24 8 -22 20 -20 16 -25 18 -14 23 -34 33 -16 23 -12 11 -21 29 -25 23 -32 34 -29 19 -18 19 -37 9 -30 16 -35 34 -17 27 -34 35 -19 16 -13 10 -29 21 -26 18 -17 25 -19 9 -21 17 -34 22 -35 25 -18 34 -19 35 -33 8 -20 16 -29 16 -33 26 -19 12 -29 29 -11 15 -31 29 -34 14 -11 34 -11 10 -26 23 -14...
output:
56
result:
ok single line: '56'
Test #30:
score: 0
Accepted
time: 7ms
memory: 4116kb
input:
841 -18 82 -30 77 -6 91 -16 98 -13 92 -6 93 -8 97 -11 78 -17 75 -7 93 -12 94 -24 100 -26 82 -4 97 -21 95 -11 84 -25 101 -19 81 -24 94 -14 78 -28 98 -30 91 -19 98 -10 77 -15 87 -23 96 -14 84 -20 99 -6 90 -29 75 -7 74 -11 76 -16 101 -20 88 -8 87 -30 101 -23 98 -3 82 -9 90 -3 93 -5 100 -5 92 -27 90 -17...
output:
56
result:
ok single line: '56'
Test #31:
score: 0
Accepted
time: 8ms
memory: 4052kb
input:
900 9 25 29 26 29 11 32 4 29 17 12 17 6 8 12 13 35 9 29 22 13 25 26 8 11 26 17 26 19 16 18 14 35 30 31 27 16 25 20 31 24 25 9 8 35 27 25 4 31 30 25 27 14 15 27 7 27 30 33 14 16 18 29 21 9 15 6 6 14 19 14 23 20 30 24 19 30 17 34 11 18 10 27 12 34 4 7 22 9 26 18 32 7 14 13 32 10 26 13 30 15 14 24 8 10...
output:
60
result:
ok single line: '60'
Test #32:
score: 0
Accepted
time: 1ms
memory: 3820kb
input:
100 -84 -2 -87 -6 -87 1 -81 -2 -87 -4 -86 -4 -86 -1 -83 2 -78 -3 -80 -2 -81 -4 -80 2 -80 0 -80 1 -82 0 -83 -5 -87 -1 -85 -5 -85 -3 -81 -6 -78 -2 -83 -3 -84 -5 -80 -1 -87 -2 -79 -5 -84 -7 -82 -6 -80 -3 -78 1 -86 2 -81 -5 -85 1 -87 -7 -86 1 -82 -5 -83 -2 -86 -2 -81 -1 -82 -1 -78 -1 -78 -7 -87 -3 -82 -...
output:
20
result:
ok single line: '20'
Test #33:
score: 0
Accepted
time: 1ms
memory: 3888kb
input:
144 84 66 78 76 74 69 81 74 81 69 74 72 78 71 81 66 73 72 78 69 81 70 83 70 75 71 83 73 83 76 76 67 77 73 80 74 76 70 73 67 80 70 77 69 73 74 82 66 84 71 75 69 83 66 77 68 84 69 84 67 74 73 77 76 78 67 76 66 84 76 80 77 83 69 75 75 82 67 73 76 79 71 74 68 80 69 75 66 79 69 78 77 83 72 74 74 81 76 75...
output:
24
result:
ok single line: '24'
Test #34:
score: 0
Accepted
time: 1ms
memory: 3924kb
input:
196 -13 8 -10 5 -3 7 -8 5 -2 16 -12 17 -9 11 -8 17 -3 18 -7 16 -3 16 -12 9 -12 18 -10 18 -5 10 -3 5 -15 10 -10 11 -2 8 -13 7 -14 17 -10 13 -12 15 -14 14 -10 17 -10 8 -14 8 -7 7 -11 5 -7 11 -7 12 -13 14 -7 9 -9 5 -2 11 -15 14 -6 18 -4 14 -3 13 -6 10 -9 9 -15 11 -11 13 -12 11 -6 13 -6 16 -2 13 -12 10 ...
output:
28
result:
ok single line: '28'
Test #35:
score: 0
Accepted
time: 2ms
memory: 3888kb
input:
256 -36 -42 -37 -42 -43 -30 -30 -39 -38 -42 -37 -35 -37 -38 -37 -34 -41 -28 -40 -40 -38 -35 -29 -30 -31 -32 -41 -27 -29 -32 -33 -27 -31 -38 -42 -35 -42 -27 -42 -30 -32 -27 -41 -40 -35 -27 -31 -33 -30 -27 -37 -28 -40 -31 -42 -41 -29 -29 -33 -42 -36 -39 -43 -39 -39 -32 -33 -31 -35 -40 -37 -40 -37 -29 ...
output:
32
result:
ok single line: '32'
Test #36:
score: 0
Accepted
time: 0ms
memory: 3860kb
input:
324 114 107 106 95 97 103 97 111 111 95 111 102 114 100 101 95 113 103 110 104 105 110 106 112 103 110 112 98 100 111 97 110 108 97 111 104 99 107 107 107 102 105 114 97 105 100 103 101 114 104 106 96 111 112 106 97 107 101 105 98 101 104 101 98 111 108 99 109 108 104 98 98 113 99 109 99 98 111 108 ...
output:
36
result:
ok single line: '36'
Test #37:
score: 0
Accepted
time: 0ms
memory: 3604kb
input:
2 9 4 11 1
output:
2
result:
ok single line: '2'
Test #38:
score: 0
Accepted
time: 0ms
memory: 3848kb
input:
2 42 69 80 64
output:
2
result:
ok single line: '2'
Test #39:
score: 0
Accepted
time: 0ms
memory: 3852kb
input:
2 197 356 156 270
output:
2
result:
ok single line: '2'
Test #40:
score: 0
Accepted
time: 0ms
memory: 3812kb
input:
3 3 -2 5 -4 4 -6
output:
0
result:
ok single line: '0'
Test #41:
score: 0
Accepted
time: 0ms
memory: 3656kb
input:
3 50 -6 23 -1 42 -26
output:
0
result:
ok single line: '0'
Test #42:
score: 0
Accepted
time: 0ms
memory: 3848kb
input:
3 153 165 172 198 140 166
output:
0
result:
ok single line: '0'
Test #43:
score: 0
Accepted
time: 0ms
memory: 3852kb
input:
4 7 7 4 9 5 10 9 8
output:
0
result:
ok single line: '0'
Test #44:
score: 0
Accepted
time: 0ms
memory: 3744kb
input:
4 11 54 26 50 18 65 6 35
output:
0
result:
ok single line: '0'
Test #45:
score: 0
Accepted
time: 0ms
memory: 3808kb
input:
4 -126 94 -138 164 -55 224 -152 121
output:
0
result:
ok single line: '0'
Test #46:
score: 0
Accepted
time: 0ms
memory: 3608kb
input:
3 -1 4 -2 5 0 3
output:
2
result:
ok single line: '2'
Test #47:
score: 0
Accepted
time: 0ms
memory: 3860kb
input:
3 84 -13 63 -23 42 -33
output:
2
result:
ok single line: '2'
Test #48:
score: 0
Accepted
time: 0ms
memory: 3660kb
input:
3 27 264 52 244 2 284
output:
2
result:
ok single line: '2'
Test #49:
score: 0
Accepted
time: 0ms
memory: 3604kb
input:
5 -4 5 -7 6 -6 3 -2 7 -5 8
output:
2
result:
ok single line: '2'
Test #50:
score: 0
Accepted
time: 0ms
memory: 3856kb
input:
5 53 54 3 100 30 75 28 77 55 52
output:
2
result:
ok single line: '2'
Test #51:
score: 0
Accepted
time: 0ms
memory: 3660kb
input:
5 151 -35 185 80 248 79 180 -151 214 -36
output:
2
result:
ok single line: '2'
Test #52:
score: 0
Accepted
time: 0ms
memory: 3744kb
input:
7 -2 5 -1 5 -6 6 -5 6 3 4 -1 4 -5 5
output:
2
result:
ok single line: '2'
Test #53:
score: 0
Accepted
time: 0ms
memory: 3860kb
input:
7 33 12 15 -38 8 -18 24 -18 31 -38 40 -8 47 -28
output:
2
result:
ok single line: '2'
Test #54:
score: 0
Accepted
time: 0ms
memory: 3816kb
input:
7 -73 44 -51 107 -50 -17 -75 -90 -55 -161 -48 117 -53 -27
output:
2
result:
ok single line: '2'
Test #55:
score: 0
Accepted
time: 0ms
memory: 3848kb
input:
5 -5 -5 1 3 7 11 -2 -1 4 7
output:
4
result:
ok single line: '4'
Test #56:
score: 0
Accepted
time: 0ms
memory: 3804kb
input:
4 -54 -99 -3 18 -37 -60 -20 -21
output:
4
result:
ok single line: '4'
Test #57:
score: 0
Accepted
time: 0ms
memory: 3848kb
input:
4 -152 344 -240 415 24 202 -64 273
output:
4
result:
ok single line: '4'
Test #58:
score: 0
Accepted
time: 0ms
memory: 3784kb
input:
9 -2 3 1 9 3 8 1 4 2 11 -1 5 0 7 2 6 0 2
output:
4
result:
ok single line: '4'
Test #59:
score: 0
Accepted
time: 0ms
memory: 3860kb
input:
7 -1 82 41 113 29 77 11 118 35 95 5 100 47 131
output:
2
result:
ok single line: '2'
Test #60:
score: 0
Accepted
time: 0ms
memory: 3876kb
input:
9 220 185 166 -140 210 202 226 279 182 -63 248 450 188 31 242 356 204 108
output:
4
result:
ok single line: '4'
Test #61:
score: 0
Accepted
time: 0ms
memory: 3612kb
input:
12 4 8 7 3 2 7 11 1 3 10 6 5 8 1 3 5 8 6 7 8 4 3 10 3
output:
4
result:
ok single line: '4'
Test #62:
score: 0
Accepted
time: 0ms
memory: 3796kb
input:
13 32 64 34 34 18 51 19 42 63 39 61 69 35 25 6 20 50 17 48 47 47 56 21 12 5 29
output:
4
result:
ok single line: '4'
Test #63:
score: 0
Accepted
time: 0ms
memory: 3612kb
input:
12 210 87 80 6 284 71 154 -10 264 16 282 37 190 32 192 66 302 92 62 -15 246 -5 172 11
output:
4
result:
ok single line: '4'
Test #64:
score: 0
Accepted
time: 0ms
memory: 3612kb
input:
5 2 11 5 14 -1 8 8 17 -4 5
output:
4
result:
ok single line: '4'
Test #65:
score: 0
Accepted
time: 0ms
memory: 3608kb
input:
7 53 79 32 45 11 11 95 147 -10 -23 116 181 74 113
output:
6
result:
ok single line: '6'
Test #66:
score: 0
Accepted
time: 0ms
memory: 3728kb
input:
7 511 -489 -99 291 23 135 267 -177 145 -21 389 -333 -221 447
output:
6
result:
ok single line: '6'
Test #67:
score: 0
Accepted
time: 0ms
memory: 3848kb
input:
7 9 -7 7 -5 3 -1 8 -6 5 -3 6 -4 4 -2
output:
6
result:
ok single line: '6'
Test #68:
score: 0
Accepted
time: 0ms
memory: 3660kb
input:
12 37 -5 1 -26 109 37 63 22 83 10 27 1 73 16 119 31 -35 -47 11 -32 47 -11 -9 -20
output:
4
result:
ok single line: '4'
Test #69:
score: 0
Accepted
time: 0ms
memory: 3604kb
input:
9 108 -144 241 -148 -4 -87 -95 23 220 -201 17 -34 -116 -30 129 -91 -207 80
output:
4
result:
ok single line: '4'
Test #70:
score: 0
Accepted
time: 0ms
memory: 3732kb
input:
20 16 11 6 4 10 3 16 14 11 9 7 7 5 -2 -1 -7 15 8 4 -5 15 11 9 0 0 -4 1 -1 9 3 4 -2 5 1 10 6 12 12 11 6
output:
6
result:
ok single line: '6'
Test #71:
score: 0
Accepted
time: 0ms
memory: 3668kb
input:
22 45 7 26 26 53 1 23 47 33 43 36 22 43 39 16 30 48 20 18 32 21 45 28 28 13 51 35 45 45 41 11 49 43 5 50 22 55 3 31 41 38 24 40 26
output:
6
result:
ok single line: '6'
Test #72:
score: 0
Accepted
time: 0ms
memory: 3660kb
input:
17 -5 211 25 331 -30 254 -114 364 37 156 -17 386 147 310 63 420 -59 441 8 343 189 255 134 178 50 288 92 233 -72 309 105 365 79 101
output:
4
result:
ok single line: '4'