UVa 11172 Relational Operators

非常適合作為ACM入門第一題。
/*
* 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;
}
view raw 11172.cpp hosted with ❤ by GitHub

留言

這個網誌中的熱門文章

UVa 10125 Sumsets

讀書心得: 撒哈拉的故事

讀書心得: 你以為你以為的就是你以為的嗎?