結果

問題 No.3032 Unavailability of Inequality Signs
ユーザー くれちーくれちー
提出日時 2018-04-01 22:19:08
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 58 ms / 2,000 ms
コード長 2,157 bytes
コンパイル時間 3,310 ms
コンパイル使用メモリ 107,600 KB
実行使用メモリ 22,820 KB
最終ジャッジ日時 2023-09-08 12:37:57
合計ジャッジ時間 4,789 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 57 ms
22,820 KB
testcase_01 AC 58 ms
20,972 KB
testcase_02 AC 57 ms
20,896 KB
testcase_03 AC 56 ms
20,788 KB
testcase_04 AC 56 ms
20,828 KB
testcase_05 AC 57 ms
20,712 KB
testcase_06 AC 57 ms
20,888 KB
testcase_07 AC 57 ms
20,796 KB
testcase_08 AC 58 ms
22,788 KB
testcase_09 AC 57 ms
20,796 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;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Text;
using static System.Convert;
using static System.Math;
using static Constants;

public class Program
{
    public static void Solve()
    {
        var n = int.Parse(_ts.Next());
        for (var i = 0; i - n != 0; i++)
        {
            var (a, b) = (int.Parse(_ts.Next()), int.Parse(_ts.Next()));
            var r = (BigInteger)a.CompareTo(b);
            if (r == 0) Console.WriteLine("=");
            else if (r == BigInteger.MinusOne) Console.WriteLine((char)60);
            else Console.WriteLine((char)62);
        }
    }

    #region Scanners
    static TextScanner _ts;
    #endregion

    [DebuggerStepThrough]
    public static void Main()
    {
        var sw = new StreamWriter(Console.OpenStandardOutput());
        sw.NewLine = "\n";
#if DEBUG
        sw.AutoFlush = true;
#else
        sw.AutoFlush = false;
#endif
        Console.SetOut(sw);
        _ts = new TextScanner(Console.In);
        Solve();
        Console.Out.Flush();
    }
}

[DebuggerStepThrough]
public class TextScanner
{
    private readonly TextReader _tr;

    public TextScanner(TextReader tr)
    {
        _tr = tr;
    }

    public string Next()
    {
        var sb = new StringBuilder();
        int i;
        do
        {
            i = _tr.Read();
            if (i == -1) throw new EndOfStreamException();
        }
        while (char.IsWhiteSpace((char)i));
        while (i != -1 && !char.IsWhiteSpace((char)i))
        {
            sb.Append((char)i);
            i = _tr.Read();
        }
        return sb.ToString();
    }
}

public static class Constants
{
    public const int AnswerToLifeTheUniverseAndEverything = 42;
    public const string Yes = "Yes";
    public const string No = "No";
    public const string YES = "YES";
    public const string NO = "NO";
    public const string Possible = "Possible";
    public const string Impossible = "Impossible";
    public const string POSSIBLE = "POSSIBLE";
    public const string IMPOSSIBLE = "IMPOSSIBLE";
}
0