結果

問題 No.3032 Unavailability of Inequality Signs
ユーザー nebukuro09nebukuro09
提出日時 2018-04-01 23:33:55
言語 Python2
(2.7.18)
結果
AC  
実行時間 12 ms / 2,000 ms
コード長 270 bytes
コンパイル時間 426 ms
コンパイル使用メモリ 6,504 KB
実行使用メモリ 6,164 KB
最終ジャッジ日時 2023-09-08 12:57:14
合計ジャッジ時間 1,346 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
6,072 KB
testcase_01 AC 11 ms
6,048 KB
testcase_02 AC 11 ms
6,164 KB
testcase_03 AC 11 ms
5,968 KB
testcase_04 AC 11 ms
6,028 KB
testcase_05 AC 11 ms
6,048 KB
testcase_06 AC 11 ms
6,072 KB
testcase_07 AC 11 ms
5,968 KB
testcase_08 AC 11 ms
6,028 KB
testcase_09 AC 12 ms
6,068 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def eq(x, y):
    return x - y == 0

def gr(x, y):
    z = x - y
    return abs(z) == z

N = input()
for _ in xrange(N):
    a, b = map(int, raw_input().split())
    if eq(a, b):
        print '='
    elif gr(a, b):
        print chr(62)
    else:
        print chr(60)
0