結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー ldsybldsyb
提出日時 2016-05-24 17:55:22
言語 Scheme
(Gauche-0.9.14)
結果
WA  
実行時間 -
コード長 367 bytes
コンパイル時間 57 ms
コンパイル使用メモリ 6,688 KB
実行使用メモリ 20,864 KB
最終ジャッジ日時 2024-04-16 12:20:08
合計ジャッジ時間 3,457 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 29 ms
16,000 KB
testcase_03 AC 27 ms
15,872 KB
testcase_04 WA -
testcase_05 AC 123 ms
20,864 KB
testcase_06 AC 27 ms
15,872 KB
testcase_07 AC 27 ms
16,000 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 28 ms
15,872 KB
testcase_11 AC 29 ms
15,872 KB
testcase_12 WA -
testcase_13 AC 28 ms
15,872 KB
testcase_14 WA -
testcase_15 AC 54 ms
17,792 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 86 ms
20,736 KB
testcase_20 AC 133 ms
20,736 KB
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

(define ans 0)
(define n (read))
(define l (list))
(let loop((i n))
	(set! l (cons (read) l))
	(if (> i 1) (loop (- i 1))))
(define (countnum ls num retnum)
	(if (pair? ls)
		(countnum (cdr ls) num (if (= (car ls) num) (+ retnum 1) retnum))
		retnum))
(let loop((i 1))
	(if (<= ans (countnum l i 0)) (set! ans i))
	(if (< i 6) (loop (+ i 1))))
(display ans)
(newline)
0