結果
| 問題 |
No.8032 Unavailability of Inequality Signs
|
| コンテスト | |
| ユーザー |
alumina_8
|
| 提出日時 | 2018-04-01 22:45:50 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 405 bytes |
| コンパイル時間 | 517 ms |
| コンパイル使用メモリ | 19,840 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-06-26 06:01:31 |
| 合計ジャッジ時間 | 8,172 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 6 TLE * 1 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:5:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
5 | scanf("%d", &n);
| ^~~~~~~~~~~~~~~
main.c:9:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
9 | scanf("%d %d", &a, &b);
| ^~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h>
int main(){
int n;
scanf("%d", &n);
int i=0,j=0,a,b;
while(i!=n){
scanf("%d %d", &a, &b);
while(j!=a&&j!=b){
j++;
}
if(a==b){
printf("%c\n", 61);
}else if(a==j){
printf("%c\n", 60);
}else{
printf("%c\n", 62);
}
j = 0;
i++;
}
return 0;
}
alumina_8