結果
| 問題 |
No.79 過小評価ダメ・ゼッタイ
|
| コンテスト | |
| ユーザー |
ldsyb
|
| 提出日時 | 2016-05-24 17:55:22 |
| 言語 | Scheme (Gauche-0.9.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 367 bytes |
| コンパイル時間 | 153 ms |
| コンパイル使用メモリ | 5,120 KB |
| 実行使用メモリ | 20,864 KB |
| 最終ジャッジ日時 | 2024-10-07 06:37:46 |
| 合計ジャッジ時間 | 3,295 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 9 WA * 13 |
ソースコード
(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)
ldsyb