#include<stdio.h>
#include<iostream>
using namespace std;
struct Node{
int fenzi;
int fenmu;
};
int gcd(int a,int b)
{
if(b==0)
return a;
else
return gcd(b,a%b);
}
int main()
{
Node A,B,C;
scanf("%d/%d%d/%d",&A.fenzi,&A.fenmu,&B.fenzi,&B.fenmu);
int a,b;
a=A.fenzi*B.fenmu;
b=A.fenmu*B.fenzi;
if(a==b)
printf("%d/%d = %d/%d",A.fenzi,A.fenmu,B.fenzi,B.fenmu);
else
if(a>b)
printf("%d/%d > %d/%d",A.fenzi,A.fenmu,B.fenzi,B.fenmu);
else if(a<b)
printf("%d/%d < %d/%d",A.fenzi,A.fenmu,B.fenzi,B.fenmu);
}
|
0 | 答案正确 | 1 | 360 | 3/3 |
1 | 答案正确 | 1 | 360 | 3/3 |
2 | 答案正确 | 1 | 360 | 2/2 |
3 | 答案正确 | 1 | 360 | 2/2 |