結果
| 問題 |
No.8032 Unavailability of Inequality Signs
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-04-01 23:55:13 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 427 bytes |
| コンパイル時間 | 2,032 ms |
| コンパイル使用メモリ | 192,468 KB |
| 最終ジャッジ日時 | 2025-01-05 09:47:50 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 7 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:7:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
7 | scanf("%d", &N);
| ~~~~~^~~~~~~~~~
main.cpp:10:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
10 | scanf("%d %d", &a, &b);
| ~~~~~^~~~~~~~~~~~~~~~~
ソースコード
#include "bits/stdc++.h"
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 (less{}(a, b)) {
printf("%c\n", 60);
} else {
if (greater{}(a, b)) {
printf("%c\n", 62);
} else {
printf("%c\n", 61);
}
}
}
return 0;
}