結果

問題 No.3032 Unavailability of Inequality Signs
ユーザー ミドリムシミドリムシ
提出日時 2018-04-01 22:23:39
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 816 bytes
コンパイル時間 478 ms
コンパイル使用メモリ 64,560 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-09-08 12:40:49
合計ジャッジ時間 1,889 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,380 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 2 ms
4,380 KB
testcase_04 AC 1 ms
4,380 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 2 ms
4,380 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include "iostream"
#include "stdio.h"
using namespace std;

int compare(int a, int b){
    if(a == b){
        return 0;
    }
    for(int i = 0; i != 30; i++){
        if(a == b){
            return -1;
        }
        a++;
    }
    return 1;
}

int main(){
    int N;
    scanf("%d", &N);
    for(int i = 0; i != N; i++){
        int a, b;
        scanf("%d %d\n", &a, &b);
        if(compare(a / 10000, b / 10000) == 1){
            printf("%c\n", char(62));
        }else if(compare(a / 10000, b / 10000) == -1){
            printf("%c\n", char(60));
        }else if(compare(a % 10000, b % 10000) == 1){
            printf("%c\n", char(62));
        }else if(compare(a % 10000, b % 10000) == -1){
            printf("%c\n", char(60));
        }else{
            printf("%c\n", char(61));
        }
    }
}

0