結果

問題 No.8032 Unavailability of Inequality Signs
ユーザー 👑 hos.lyric
提出日時 2019-04-01 11:58:33
言語 D
(dmd 2.109.1)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 275 bytes
コンパイル時間 801 ms
コンパイル使用メモリ 97,676 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-13 04:34:00
合計ジャッジ時間 1,610 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

import std.conv, std.stdio, std.string;
import std.math;

void main() {
  readln;
  for (string line; (line = readln) !is null; ) {
    const tokens = line.split;
    const A = tokens[0].to!int;
    const B = tokens[1].to!int;
    writeln(cast(char)(61 + sgn(A - B)));
  }
}
0