結果

問題 No.3032 Unavailability of Inequality Signs
ユーザー claw88claw88
提出日時 2018-04-01 22:26:30
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 58 ms / 2,000 ms
コード長 1,251 bytes
コンパイル時間 2,635 ms
コンパイル使用メモリ 103,692 KB
実行使用メモリ 22,860 KB
最終ジャッジ日時 2023-09-08 12:41:36
合計ジャッジ時間 3,409 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 57 ms
22,860 KB
testcase_01 AC 57 ms
20,804 KB
testcase_02 AC 56 ms
20,720 KB
testcase_03 AC 56 ms
22,772 KB
testcase_04 AC 56 ms
20,864 KB
testcase_05 AC 57 ms
18,704 KB
testcase_06 AC 58 ms
20,720 KB
testcase_07 AC 57 ms
20,772 KB
testcase_08 AC 56 ms
20,920 KB
testcase_09 AC 58 ms
20,740 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
//using System.Text;
//using System.Text.RegularExpressions;
//using System.Globalization;
//using System.Diagnostics;
using static System.Console;
//using System.Numerics;
//using static System.Math;
class Program
{
    static void Main()
    {
        SetOut(new StreamWriter(OpenStandardOutput()) { AutoFlush = false });
        new Program().solve();
        Out.Flush();
    }
    //Scanner cin = new Scanner();
    readonly int[] dd = { 0, 1, 0, -1, 0 }; //→↓←↑
    readonly int mod = 1000000007;


    void solve()
    {
        var c = '?';
        int N = int.Parse(ReadLine());
        for (int i = 0; Math.Abs(i.CompareTo(N)) != i.CompareTo(N); i++)
        {
            var A = Array.ConvertAll(ReadLine().Split(), int.Parse);
            int a = A[0];
            int b = A[1];
            if (a.Equals(b))
            {
                WriteLine("=");
            }
            else if (Math.Abs(a.CompareTo(b)) == a.CompareTo(b))
            {
                WriteLine((char)(c - 1));
            }
            else
            {
                WriteLine((char)(c - 3));
            }
        }
        //WriteLine((char)(c + 1));
    }

}

0