結果

問題 No.785 色食い虫
ユーザー ikdikd
提出日時 2019-08-02 08:17:32
言語 Scheme
(Gauche-0.9.14)
結果
AC  
実行時間 26 ms / 2,000 ms
コード長 270 bytes
コンパイル時間 35 ms
コンパイル使用メモリ 5,216 KB
実行使用メモリ 12,876 KB
最終ジャッジ日時 2023-09-18 18:08:59
合計ジャッジ時間 2,500 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 25 ms
12,740 KB
testcase_01 AC 25 ms
12,608 KB
testcase_02 AC 24 ms
12,848 KB
testcase_03 AC 24 ms
12,584 KB
testcase_04 AC 23 ms
12,672 KB
testcase_05 AC 24 ms
12,764 KB
testcase_06 AC 24 ms
12,740 KB
testcase_07 AC 24 ms
12,564 KB
testcase_08 AC 25 ms
12,600 KB
testcase_09 AC 24 ms
12,716 KB
testcase_10 AC 24 ms
12,764 KB
testcase_11 AC 24 ms
12,840 KB
testcase_12 AC 26 ms
12,604 KB
testcase_13 AC 24 ms
12,676 KB
testcase_14 AC 24 ms
12,768 KB
testcase_15 AC 24 ms
12,860 KB
testcase_16 AC 25 ms
12,836 KB
testcase_17 AC 24 ms
12,612 KB
testcase_18 AC 25 ms
12,604 KB
testcase_19 AC 24 ms
12,708 KB
testcase_20 AC 24 ms
12,876 KB
testcase_21 AC 25 ms
12,648 KB
testcase_22 AC 24 ms
12,852 KB
testcase_23 AC 24 ms
12,736 KB
testcase_24 AC 24 ms
12,588 KB
testcase_25 AC 24 ms
12,680 KB
testcase_26 AC 23 ms
12,576 KB
testcase_27 AC 24 ms
12,616 KB
testcase_28 AC 24 ms
12,600 KB
testcase_29 AC 24 ms
12,664 KB
testcase_30 AC 25 ms
12,644 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#! /usr/bin/env gosh

(define (g a)
  (square 
    (if (and (= (length a) 1)
             (string=? (car a) "NONE"))
      16
      (- 16 (length a)))))

(display (let f ([i 0] [res 1])
  (if (= i 3)
    res
    (f (+ i 1) (* res (g (string-split (read-line) ",")))))))
0