Submission #482837

#TimeUsernameProblemLanguageResultExecution timeMemory
482837rainboyEuklid (COCI20_euklid)C11
12 / 110
1 ms204 KiB
#include <stdio.h> int main() { int t; scanf("%d", &t); while (t--) { int a, b; scanf("%d%d", &a, &b); if (a == b) printf("%d %d\n", a, a); else if (b == 0) printf("%d %d\n", a * 2, a); else if (a == (long long) b * b) printf("%d %lld\n", a, (long long) a * b); } return 0; }

Compilation message (stderr)

euklid.c: In function 'main':
euklid.c:6:2: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
    6 |  scanf("%d", &t);
      |  ^~~~~~~~~~~~~~~
euklid.c:10:3: warning: ignoring return value of 'scanf' declared with attribute 'warn_unused_result' [-Wunused-result]
   10 |   scanf("%d%d", &a, &b);
      |   ^~~~~~~~~~~~~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...