Submission #482836

#TimeUsernameProblemLanguageResultExecution timeMemory
482836rainboyEuklid (COCI20_euklid)C11
12 / 110
1 ms276 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 (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...