結果
| 問題 |
No.8032 Unavailability of Inequality Signs
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-04-01 22:25:42 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 1,283 bytes |
| コンパイル時間 | 1,567 ms |
| コンパイル使用メモリ | 111,532 KB |
| 実行使用メモリ | 26,020 KB |
| 最終ジャッジ日時 | 2024-06-26 05:53:53 |
| 合計ジャッジ時間 | 2,817 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 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.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;
//using pair = Pair<int, int>;
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));
}
}