結果
問題 |
No.8032 Unavailability of Inequality Signs
|
ユーザー |
|
提出日時 | 2018-04-01 22:23:06 |
言語 | Nim (2.2.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 375 bytes |
コンパイル時間 | 2,715 ms |
コンパイル使用メモリ | 65,208 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-30 05:44:05 |
合計ジャッジ時間 | 4,270 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 7 |
コンパイルメッセージ
/home/judge/data/code/Main.nim(1, 28) Warning: imported and not used: 'math' [UnusedImport]
ソースコード
import sequtils, strutils, math var n = readLine(stdin).parseInt a:seq[int] = @[] for i in 0..(n - 1): a.add(readLine(stdin).split.map(parseInt)) for i in 0..(n - 1): var a1 = a[i * 2] a2 = a[(i * 2) + 1] if a1 == a2: echo char(61) if max(a1, a2) == a1: echo char(62) elif max(a1, a2) == a2: echo char(60)