結果
| 問題 | 
                            No.8032 Unavailability of Inequality Signs 
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2022-11-30 20:39:31 | 
| 言語 | C++17  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 2 ms / 2,000 ms | 
| コード長 | 308 bytes | 
| コンパイル時間 | 1,785 ms | 
| コンパイル使用メモリ | 191,040 KB | 
| 最終ジャッジ日時 | 2025-02-09 02:46:16 | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 7 | 
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:5:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    5 |         scanf("%d", &N);
      |         ~~~~~^~~~~~~~~~
main.cpp:11:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   11 |                 scanf("%d %d", &a, &b);
      |                 ~~~~~^~~~~~~~~~~~~~~~~
            
            ソースコード
#include "bits/stdc++.h"
int main() {
    int N;
	scanf("%d", &N);
	char c60 = (char)(60);
	char c61 = (char)(61);
	char c62 = (char)(62);
	while (N--) {
		int a, b;
		scanf("%d %d", &a, &b);
		if (a / b == 0) printf("%c\n", c60);
		else if (b / a == 0) printf("%c\n", c62);
		else printf("%c\n", c61);
	}
}