結果
問題 | No.152 貯金箱の消失 |
ユーザー |
|
提出日時 | 2024-09-20 22:51:06 |
言語 | Scheme (Gauche-0.9.15) |
結果 |
AC
|
実行時間 | 72 ms / 5,000 ms |
コード長 | 195 bytes |
コンパイル時間 | 284 ms |
コンパイル使用メモリ | 6,940 KB |
実行使用メモリ | 16,256 KB |
最終ジャッジ日時 | 2024-09-20 22:51:08 |
合計ジャッジ時間 | 1,534 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 12 |
ソースコード
(define yuki152(letrec((loop (lambda (x y l) (let ((xy (+ x y))) (if (<= (* 8 x xy) l) (+ (modulo xy 2) (loop xy x l) (loop xy y l)) 0)))))(display (loop 2 1 (read)))(newline)))