結果
| 問題 | No.143 豆 |
| コンテスト | |
| ユーザー |
Rin
|
| 提出日時 | 2015-09-05 20:47:18 |
| 言語 | Scheme (Gauche-0.9.15) |
| 結果 |
AC
|
| 実行時間 | 17 ms / 1,000 ms |
| + 176µs | |
| コード長 | 447 bytes |
| 記録 | |
| コンパイル時間 | 28 ms |
| コンパイル使用メモリ | 6,272 KB |
| 実行使用メモリ | 16,384 KB |
| 最終ジャッジ日時 | 2026-08-23 23:23:34 |
| 合計ジャッジ時間 | 2,033 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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