# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
465297 | rainboy | Uzastopni (COCI17_uzastopni) | C11 | 3 ms | 204 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <stdio.h>
int main() {
long long n, a;
scanf("%lld", &n), n *= 2;
for (a = 2; a <= n / a; a++)
if (n % a == 0 && (a + n / a) % 2 == 1)
printf("%lld %lld\n", (n / a - a + 1) / 2, (n / a + a - 1) / 2);
return 0;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |