結果
問題 |
No.8032 Unavailability of Inequality Signs
|
ユーザー |
![]() |
提出日時 | 2018-02-03 22:21:43 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 635 bytes |
コンパイル時間 | 154 ms |
コンパイル使用メモリ | 82,304 KB |
実行使用メモリ | 66,812 KB |
最終ジャッジ日時 | 2024-06-30 03:54:37 |
合計ジャッジ時間 | 2,301 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 2 RE * 5 |
ソースコード
#!/usr/bin/env pypy3 def compare(a, b): if a == b: return 0 else: return (a - b) // abs(a - b) # 入力チェック用 assert つき def main(): n = int(input()) assert compare(1, n) != 1 and compare(n, 10) != 1 for _ in range(n): a, b = (int(x) for x in input().split()) assert compare(1, a) != 1 and compare(a, 10 ** 8) != 1 assert compare(1, b) != 1 and compare(b, 10 ** 8) != 1 c = compare(a, b) if c == 1: print("G") elif c == 0: print("E") else: print("L") if __name__ == '__main__': main()