結果

問題 No.481 1から10
ユーザー _Clay_____Clay____
提出日時 2018-09-17 23:46:35
言語 Scheme
(Gauche-0.9.14)
結果
AC  
実行時間 19 ms / 2,000 ms
コード長 236 bytes
コンパイル時間 131 ms
コンパイル使用メモリ 5,336 KB
実行使用メモリ 13,684 KB
最終ジャッジ日時 2023-09-25 09:39:18
合計ジャッジ時間 1,083 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
11,856 KB
testcase_01 AC 18 ms
13,684 KB
testcase_02 AC 17 ms
11,836 KB
testcase_03 AC 17 ms
11,740 KB
testcase_04 AC 19 ms
11,644 KB
testcase_05 AC 18 ms
11,668 KB
testcase_06 AC 19 ms
11,776 KB
testcase_07 AC 18 ms
11,880 KB
testcase_08 AC 18 ms
11,832 KB
testcase_09 AC 17 ms
11,752 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

(define v (map string->number (string-split (read-line) " ")))
(define (c i v)
  (cond ((= (length v) 1) (if (= (car i) (car v)) 10 9))
        ((= (car i) (car v)) (c (cdr i) (cdr v)))
        (else (car i))))
(print (c (iota 10 1) v))
0