結果
| 問題 | 
                            No.8032 Unavailability of Inequality Signs 
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2018-04-01 22:19:36 | 
| 言語 | C++17  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 2 ms / 2,000 ms | 
| コード長 | 526 bytes | 
| コンパイル時間 | 3,182 ms | 
| コンパイル使用メモリ | 212,196 KB | 
| 最終ジャッジ日時 | 2025-01-05 09:42:30 | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 7 | 
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:13:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   13 |     scanf("%d", &N);
      |     ~~~~~^~~~~~~~~~
main.cpp:16:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   16 |         scanf("%d%d", &a, &b);
      |         ~~~~~^~~~~~~~~~~~~~~~
            
            ソースコード
#pragma GCC optimize ("O3")
#pragma GCC target ("avx")
#include "bits/stdc++.h"
using namespace std;
using ll = long long;
const char c_le = ';'+1;
const char c_ge = '?'-1;
int N;
int main() {
    scanf("%d", &N);
    for (int i = 0; i != N; ++i){
        int a, b;
        scanf("%d%d", &a, &b);
        if (a == b){
            putchar('=');
        }
        else if ((ll)unsigned(a-b) == ll(a-b)){
            putchar(c_ge);
        }
        else
            putchar(c_le);
        putchar('\n');
    }
    return 0;
}