結果
| 問題 |
No.8032 Unavailability of Inequality Signs
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-04-01 23:56:56 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 9 ms / 2,000 ms |
| コード長 | 428 bytes |
| コンパイル時間 | 2,116 ms |
| コンパイル使用メモリ | 191,288 KB |
| 最終ジャッジ日時 | 2025-01-05 09:48:07 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 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; N - i; 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;
}