結果
| 問題 |
No.143 豆
|
| コンテスト | |
| ユーザー |
Rin
|
| 提出日時 | 2015-09-05 20:47:18 |
| 言語 | Scheme (Gauche-0.9.15) |
| 結果 |
AC
|
| 実行時間 | 27 ms / 1,000 ms |
| コード長 | 447 bytes |
| コンパイル時間 | 54 ms |
| コンパイル使用メモリ | 6,688 KB |
| 実行使用メモリ | 16,128 KB |
| 最終ジャッジ日時 | 2024-07-23 10:21:42 |
| 合計ジャッジ時間 | 1,403 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 17 |
ソースコード
(define (System.out.println x)
(begin
(write x)
(newline)
)
)
(let (
(SoyBeans (* (read) (read)))
(F (read))
)
(let loop(
(RemainingBeans SoyBeans)
(foo (read))
)
(if (eof-object? foo)
(System.out.println RemainingBeans)
(if (> 0 (- RemainingBeans foo))
(System.out.println -1)
(loop (- RemainingBeans foo) (read))
)
)
)
)
Rin