File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
MyOnlineSubmissions/Codechef/MAY20 Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ class Bit{
53
53
} bitX, bitY;
54
54
55
55
vector<ll> getValidZValues (ll &L, ll &R) {
56
- vector<ll> validZ = {L, R}; // L and R are always valid Z values we should handle
56
+ vector<ll> Zcandidates = {L, R}; // L and R are always valid Z values we should handle
57
57
Bit bitL (L);
58
58
Bit bitR (R);
59
59
int k = 0 ;
@@ -71,7 +71,7 @@ vector<ll> getValidZValues(ll &L, ll &R) {
71
71
z.set (i, 1 ); // maximize F(X,Y,Z)
72
72
}
73
73
}
74
- validZ .push_back (z.toInt ());
74
+ Zcandidates .push_back (z.toInt ());
75
75
}
76
76
for (int r = k+1 ; r < 40 ; r++) {
77
77
if (bitR.get (r) != 1 ) continue ;
@@ -85,11 +85,11 @@ vector<ll> getValidZValues(ll &L, ll &R) {
85
85
z.set (i, 1 );
86
86
}
87
87
}
88
- validZ .push_back (z.toInt ());
88
+ Zcandidates .push_back (z.toInt ());
89
89
}
90
90
91
- sort (validZ .begin (), validZ .end ());
92
- return validZ ;
91
+ sort (Zcandidates .begin (), Zcandidates .end ());
92
+ return Zcandidates ;
93
93
}
94
94
95
95
int main () {
You can’t perform that action at this time.
0 commit comments