結果

問題 No.3032 Unavailability of Inequality Signs
ユーザー はむ吉🐹はむ吉🐹
提出日時 2018-02-04 22:32:26
言語 Scheme
(Gauche-0.9.14)
結果
AC  
実行時間 18 ms / 2,000 ms
コード長 382 bytes
コンパイル時間 64 ms
コンパイル使用メモリ 5,212 KB
実行使用メモリ 13,884 KB
最終ジャッジ日時 2023-09-12 16:09:36
合計ジャッジ時間 1,276 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
11,664 KB
testcase_01 AC 18 ms
11,964 KB
testcase_02 AC 17 ms
11,876 KB
testcase_03 AC 17 ms
11,784 KB
testcase_04 AC 16 ms
11,748 KB
testcase_05 AC 17 ms
13,884 KB
testcase_06 AC 17 ms
11,924 KB
testcase_07 AC 17 ms
11,784 KB
testcase_08 AC 17 ms
11,880 KB
testcase_09 AC 17 ms
11,796 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

; とりあえず動くが,もっといい書き方がありそう
; compareは整数のみならず様々なオブジェクトの比較に使える
; #\xの後で16進でASCIIコードを指定する
(let* ((n (read)))
    (dotimes (n) (let* ((a (read)) (b (read)))
        (print (case (compare a b)
            ((-1) #\x3C)
            ((0) #\x3D)
            ((1) #\x3E))))))
0