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>
#include<algorithm>
#include "grader.h"
using namespace std;
int gcd(int a, int b){
while (b != 0){
int r = a%b;
a = b;
b = r;
}
return a;
}
int lcm(int a, int b){
return a * b / gcd(a, b);
}
int solve(){
int a, b;
int a1, b1;
a = f(1);
b = f(2);
a = a * 2;
b1 = a - b;
a1 = (b - b1) / 2;
Report(a1, b1);
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |