Submission #465297

#TimeUsernameProblemLanguageResultExecution timeMemory
465297rainboyUzastopni (COCI17_uzastopni)C11
80 / 80
3 ms204 KiB
#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)

uzastopni.c: In function 'main':
uzastopni.c:6:2: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
    6 |  scanf("%lld", &n), n *= 2;
      |  ^~~~~~~~~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...