結果

問題 No.185 和風
コンテスト
ユーザー kokoa1046
提出日時 2017-09-03 23:36:00
言語 Scheme
(Gauche-0.9.15)
コンパイル:
true
実行:
gosh _filename_
結果
AC  
実行時間 28 ms / 1,000 ms
コード長 221 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 68 ms
コンパイル使用メモリ 8,096 KB
実行使用メモリ 16,640 KB
最終ジャッジ日時 2026-05-07 01:58:49
合計ジャッジ時間 2,616 ms
ジャッジサーバーID
(参考情報)
judge1_1 / judge2_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 7
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

(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