結果

問題 No.32 貯金箱の憂鬱
ユーザー Rin
提出日時 2015-08-23 20:57:41
言語 Scheme
(Gauche-0.9.15)
結果
WA  
実行時間 -
コード長 972 bytes
コンパイル時間 34 ms
コンパイル使用メモリ 5,248 KB
実行使用メモリ 16,128 KB
最終ジャッジ日時 2024-07-18 13:04:54
合計ジャッジ時間 741 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 3 WA * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

(let (
          (One (read (current-input-port)))
          (TwentyFive (read (current-input-port)))
          (Handred (read (current-input-port)))
      )
     (begin
         (let loop((i One))
             (when (>= i 25)
                 (begin
                     (set! One (- One 25))
                     (set! TwentyFive (+ TwentyFive 1))
                     (loop One)
                 )
            )
        )
        (let loop((i TwentyFive))
            (when (>= i 4)
                (begin
                    (set! TwentyFive (- TwentyFive 4))
                    (set! Handred (+ Handred 1))
                    (loop TwentyFive)
                )
            )
        )
        (let loop((i Handred))
            (when (>= i 10)
                (begin
                    (set! Handred (- Handred 10))
                    (loop Handred)
                )
            )
        )
        (display (+ One TwentyFive Handred))
        (newline)
    )
)
0