結果

問題 No.785 色食い虫
ユーザー ikdikd
提出日時 2019-08-02 08:17:32
言語 Scheme
(Gauche-0.9.15)
結果
AC  
実行時間 36 ms / 2,000 ms
コード長 270 bytes
コンパイル時間 172 ms
コンパイル使用メモリ 5,504 KB
実行使用メモリ 17,024 KB
最終ジャッジ日時 2024-07-05 08:03:04
合計ジャッジ時間 2,521 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 28
権限があれば一括ダウンロードができます

ソースコード

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