結果

問題 No.481 1から10
ユーザー _Clay_____Clay____
提出日時 2018-09-18 00:26:55
言語 Scheme
(Gauche-0.9.14)
結果
AC  
実行時間 19 ms / 2,000 ms
コード長 206 bytes
コンパイル時間 177 ms
コンパイル使用メモリ 5,220 KB
実行使用メモリ 11,920 KB
最終ジャッジ日時 2023-09-25 09:41:06
合計ジャッジ時間 1,074 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
11,668 KB
testcase_01 AC 18 ms
11,668 KB
testcase_02 AC 19 ms
11,920 KB
testcase_03 AC 18 ms
11,680 KB
testcase_04 AC 19 ms
11,920 KB
testcase_05 AC 18 ms
11,640 KB
testcase_06 AC 18 ms
11,852 KB
testcase_07 AC 18 ms
11,776 KB
testcase_08 AC 18 ms
11,672 KB
testcase_09 AC 18 ms
11,640 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

(define v (map string->number (string-split (read-line) " ")))
(define (c l)
  (cond ((null? l) 10) 
        ((= (caar l) (cdar l)) (c (cdr l)))
        (else (caar l))))
(print (c (map cons (iota 9 1) v)))
0