8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38f2f26 commit 42fad4aCopy full SHA for 42fad4a
0x12/solutions/1476.cpp
@@ -1,6 +1,6 @@
1
// Authored by : SciEm
2
// Co-authored by : -
3
-// http://boj.kr/f10dafa7b28241d7a173b2be389804bf
+// http://boj.kr/78692d69bc014987b88c4b288ca1c95d
4
#include <bits/stdc++.h>
5
using namespace std;
6
@@ -16,7 +16,7 @@ int main() {
16
int i = e;
17
for (; i % 28 != s; i += 15);
18
19
- int j = i;
20
- for (; j % 19 != m; j += lcm(15, 28));
+ int j = i, l = lcm(15, 28);
+ for (; j % 19 != m; j += l);
21
cout << j + 1;
22
}
0 commit comments