UVa 11172 Relational Operators
非常適合作為ACM入門第一題。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* UVa 11172 Relational Operators | |
* Author: chchwy | |
* Last Modified: 2009.11.26 | |
*/ | |
#include<cstdio> | |
int main() | |
{ | |
int a, b; | |
int numCase; | |
scanf("%d", &numCase); | |
while (numCase--) | |
{ | |
scanf("%d %d", &a, &b); | |
if (a < b) puts("<"); | |
else if (a > b) puts(">"); | |
else puts("="); | |
} | |
return 0; | |
} |
留言
張貼留言