結果

問題 No.1686 Geschenkt
ユーザー n_getn_get
提出日時 2022-07-13 13:59:35
言語 Scheme
(Gauche-0.9.14)
結果
AC  
実行時間 20 ms / 2,000 ms
コード長 140 bytes
コンパイル時間 152 ms
コンパイル使用メモリ 5,288 KB
実行使用メモリ 12,100 KB
最終ジャッジ日時 2023-09-06 22:57:34
合計ジャッジ時間 1,156 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
12,080 KB
testcase_01 AC 19 ms
12,100 KB
testcase_02 AC 18 ms
11,976 KB
testcase_03 AC 19 ms
11,924 KB
testcase_04 AC 18 ms
11,940 KB
testcase_05 AC 18 ms
11,920 KB
testcase_06 AC 18 ms
11,872 KB
testcase_07 AC 18 ms
12,044 KB
testcase_08 AC 18 ms
12,048 KB
testcase_09 AC 20 ms
12,080 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

(use srfi-1)
(define ans 0)
(fold (^(x s) (unless (= (+ s 1) x) (inc! ans x)) x) -100 (sort (list-tabulate (read) (^_ (read)))))
(print ans)
0