UVA 11172
http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&category=24&problem=2113&mosmsg=Submission+received+with+ID+11407808
简单的比较两个数的大小,记得类型定得大一点
View Code
#include<stdio.h> #include<string.h> int main() { long long a,b; int i; while(scanf("%d",&i)!=EOF) { while(i--) { scanf("%lld%lld",&a,&b); if(a>b) printf(">\n"); else if(a<b) printf("<\n"); else printf("=\n"); } } return 0; }