結果
問題 |
No.8032 Unavailability of Inequality Signs
|
ユーザー |
![]() |
提出日時 | 2018-04-01 23:04:33 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 362 bytes |
コンパイル時間 | 440 ms |
コンパイル使用メモリ | 56,024 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-26 06:05:05 |
合計ジャッジ時間 | 2,319 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 7 |
コンパイルメッセージ
main.cpp: In function ‘int main(int, const char**)’: main.cpp:9:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 9 | scanf("%d",&N); | ~~~~~^~~~~~~~~ main.cpp:13:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 13 | scanf("%d",&a); | ~~~~~^~~~~~~~~ main.cpp:14:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 14 | scanf("%d",&b); | ~~~~~^~~~~~~~~
ソースコード
#include <stdio.h> #include <stdlib.h> #include <iostream> #include <algorithm> int main(int argc, char const* argv[]) { int N; scanf("%d",&N); int a,b; int i=0; while(i!=N){ scanf("%d",&a); scanf("%d",&b); if(a==b){ printf("=\n"); } else if((a==std::max(a,b))){ printf(">\n"); } else { printf("<\n"); } i++; } return 0; }