結果
問題 |
No.8032 Unavailability of Inequality Signs
|
ユーザー |
![]() |
提出日時 | 2018-04-25 23:31:45 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 324 bytes |
コンパイル時間 | 2,033 ms |
コンパイル使用メモリ | 192,680 KB |
最終ジャッジ日時 | 2025-01-05 10:22:46 |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 7 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:8:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 8 | scanf("%d", &n); | ~~~~~^~~~~~~~~~ main.cpp:12:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 12 | scanf("%d %d", &a, &b); | ~~~~~^~~~~~~~~~~~~~~~~
ソースコード
#include "bits/stdc++.h" using namespace std; int main() { int n; scanf("%d", &n); while (n--) { int a, b; scanf("%d %d", &a, &b); if (min(a, b) == max(a, b)) { printf("%c\n", 61); } else if (min(a, b) == a && max(a, b) == b) { printf("%c\n", 60); } else { printf("%c\n", 62); } } return 0; }