8000 Update 1476.cpp · w10gd/basic-algo-lecture@c8b0b05 · GitHub
[go: up one dir, main page]

Skip to content

Commit c8b0b05

Browse files
author
SciEm
committed
Update 1476.cpp
1 parent 42fad4a commit c8b0b05

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

0x12/solutions/1476.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ int main() {
1616
int i = e;
1717
for (; i % 28 != s; i += 15);
1818

19-
int j = i, l = lcm(15, 28);
20-
for (; j % 19 != m; j += l);
21-
cout << j + 1;
19+
int l = lcm(15, 28);
20+
for (; i % 19 != m; i += l);
21+
cout << i + 1;
2222
}

0 commit comments

Comments
 (0)
0