Add d1p1 faf
This commit is contained in:
@@ -89,14 +89,13 @@ int main() {
|
|||||||
auto [next, ec] = std::from_chars(ptr, end, number);
|
auto [next, ec] = std::from_chars(ptr, end, number);
|
||||||
ptr = next;
|
ptr = next;
|
||||||
|
|
||||||
while (ptr < end && (*ptr == '\n' || *ptr == '\r')) {
|
if (ptr < end && *ptr == '\r') ++ptr;
|
||||||
++ptr;
|
if (ptr < end && *ptr == '\n') ++ptr;
|
||||||
}
|
|
||||||
|
|
||||||
if (is_right) {
|
if (is_right) {
|
||||||
state = (state + number) % 100;
|
state = (state + number) % 100;
|
||||||
} else {
|
} else {
|
||||||
state = (state - number % 100 + 100) % 100;
|
state = (state + 100 - number % 100) % 100;
|
||||||
}
|
}
|
||||||
|
|
||||||
password += (state == 0);
|
password += (state == 0);
|
||||||
|
|||||||
Reference in New Issue
Block a user