結果

問題 No.185 和風
ユーザー kokoa1046kokoa1046
提出日時 2017-09-03 23:36:00
言語 Scheme
(Gauche-0.9.13)
結果
AC  
実行時間 21 ms / 1,000 ms
コード長 221 bytes
コンパイル時間 80 ms
コンパイル使用メモリ 5,456 KB
実行使用メモリ 12,200 KB
最終ジャッジ日時 2023-08-06 17:11:43
合計ジャッジ時間 746 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
11,740 KB
testcase_01 AC 20 ms
11,844 KB
testcase_02 AC 21 ms
12,100 KB
testcase_03 AC 21 ms
11,992 KB
testcase_04 AC 19 ms
11,800 KB
testcase_05 AC 18 ms
11,648 KB
testcase_06 AC 18 ms
12,200 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

(define d (read))
(define (readn n)  (if (= n 0) '() (cons (let ( (a (read)) (b (read))) (- b a) ) (readn (- n 1)) ) ))
(let ( (l (readn d)))(if   (apply = l) (if (< (car l) 1) (print "-1") (print (car l))) (print "-1")))
0