結果

問題 No.35 タイパー高橋
ユーザー MiyamonYMiyamonY
提出日時 2019-09-04 00:29:32
言語 Scheme
(Gauche-0.9.14)
結果
AC  
実行時間 27 ms / 5,000 ms
コード長 475 bytes
コンパイル時間 55 ms
コンパイル使用メモリ 5,296 KB
実行使用メモリ 13,704 KB
最終ジャッジ日時 2023-08-26 16:39:39
合計ジャッジ時間 1,217 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 26 ms
13,608 KB
testcase_01 AC 25 ms
13,684 KB
testcase_02 AC 26 ms
13,564 KB
testcase_03 AC 27 ms
13,704 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

(define (read-number)
  (string->number (read-line)))

(let* ((n (read-number))
       (arr (map (lambda (_)
		   (define a (read))
		   (define b (symbol->string (read)))
		   (cons a b))
		 (iota n)))
       (total-length
	(fold + 0 (map (lambda (x) (string-length (cdr x))) arr)))
       (count-success
	(fold + 0 (map (lambda (x)
			 (min (div (* 12 (car x)) 1000) (string-length (cdr x)))) arr) )))

  (format #t "~a ~a\n" count-success (- total-length count-success)))
0