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