結果
問題 | No.8032 Unavailability of Inequality Signs |
ユーザー |
|
提出日時 | 2020-03-25 13:15:51 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 572 bytes |
コンパイル時間 | 732 ms |
コンパイル使用メモリ | 88,712 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2025-01-01 20:27:40 |
合計ジャッジ時間 | 1,592 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 7 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:19:17: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 19 | int n; scanf("%d", &n); | ~~~~~^~~~~~~~~~ main.cpp:21:24: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 21 | int a, b; scanf("%d %d", &a, &b); | ~~~~~^~~~~~~~~~~~~~~~~
ソースコード
#include "iostream" #include "algorithm" #include "iomanip" #include "map" #include "set" #include "queue" #include "stack" #include "numeric" #include "bitset" #include "cmath" static const int MOD = 1000000007; using ll = long long; using u32 = unsigned; using u64 = unsigned long long; using namespace std; int main() { int n; scanf("%d", &n); for (int i = 0; i != n; ++i) { int a, b; scanf("%d %d", &a, &b); if(a == b) puts("="); else if(u32(b-a)&0x80000000) printf("%c\n", 62); else printf("%c\n", 60); } return 0; }