結果
| 問題 | 
                            No.8032 Unavailability of Inequality Signs 
                             | 
                    
| コンテスト | |
| ユーザー | 
                             algon_320
                         | 
                    
| 提出日時 | 2018-04-01 22:19:00 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 35 ms / 2,000 ms | 
| コード長 | 1,162 bytes | 
| コンパイル時間 | 103 ms | 
| コンパイル使用メモリ | 12,544 KB | 
| 実行使用メモリ | 11,008 KB | 
| 最終ジャッジ日時 | 2024-06-26 05:50:29 | 
| 合計ジャッジ時間 | 1,144 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge1 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 7 | 
ソースコード
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
from collections import deque
import heapq
from collections import Counter
import math
# ------------------------------------------------------
class IN:
    @staticmethod
    def singleInt():
        return int(input())
    @staticmethod
    def singleStr():
        return input()
    @staticmethod
    def listInt():
        return list(map(int, input().split()))
    @staticmethod
    def listStr():
        return input().split()
# ------------------------------------------------------
def contain(c, x):
    return (x in c)
def str_reverse(s):
    return s[::-1]
def ctoi(c):
    return int.from_bytes(c.encode(), byteorder='big')
def itoc(x):
    return x.to_bytes((x.bit_length() + 7) // 8, byteorder='big').decode()
INF = 1001001001001001001
# ------------------------------------------------------
if __name__ == '__main__':
    N = IN.singleInt()
    for i in range(N):
        a, b = IN.listInt()
        if a == b:
            print("=")
        elif math.sqrt((a - b) * (a - b)) == (a - b):
            print(itoc(ctoi(";")+3))
        else:
            print(itoc(ctoi(";")+1))
            
            
            
        
            
algon_320