結果
| 問題 | No.8032 Unavailability of Inequality Signs |
| コンテスト | |
| ユーザー |
くれちー
|
| 提出日時 | 2018-04-01 22:19:08 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 26 ms / 2,000 ms |
| コード長 | 2,157 bytes |
| コンパイル時間 | 1,013 ms |
| コンパイル使用メモリ | 112,380 KB |
| 実行使用メモリ | 17,920 KB |
| 最終ジャッジ日時 | 2024-06-26 05:50:33 |
| 合計ジャッジ時間 | 1,972 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 7 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
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";
}
くれちー