結果

問題 No.3032 Unavailability of Inequality Signs
ユーザー 抹茶アイス抹茶アイス
提出日時 2023-08-09 14:25:38
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 23 ms / 2,000 ms
コード長 996 bytes
コンパイル時間 1,914 ms
コンパイル使用メモリ 110,516 KB
実行使用メモリ 26,252 KB
最終ジャッジ日時 2024-04-27 09:19:48
合計ジャッジ時間 2,680 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 21 ms
24,164 KB
testcase_01 AC 22 ms
24,156 KB
testcase_02 AC 22 ms
23,824 KB
testcase_03 AC 22 ms
26,080 KB
testcase_04 AC 23 ms
25,948 KB
testcase_05 AC 22 ms
26,004 KB
testcase_06 AC 20 ms
24,032 KB
testcase_07 AC 21 ms
26,080 KB
testcase_08 AC 20 ms
25,952 KB
testcase_09 AC 20 ms
26,252 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;

namespace yukicoder
{
    public class Program
    {
        public static void Main()
        {
            var n = int.Parse(Console.ReadLine());
            var a = new int[n];
            var b = new int[n];
            var i = 0;
            while (i != n)
            {
                var line = Console.ReadLine().Split(' ');
                a[i] = int.Parse(line[0]);
                b[i] = int.Parse(line[1]);
                i++;
            }
            i = 0;
            while (i != n)
            {
                if (a[i] == b[i])
                {
                    Console.WriteLine("=");
                }
                else if (Math.Max(a[i], b[i]) == a[i])
                {
                    Console.WriteLine((char)62);
                }
                else
                {
                    Console.WriteLine((char)60);
                }
                i++;
            }
        }
    }
}
0