結果
| 問題 |
No.48 ロボットの操縦
|
| コンテスト | |
| ユーザー |
MOD9cXWdOsRxvPy
|
| 提出日時 | 2022-10-31 01:34:50 |
| 言語 | Scheme (Gauche-0.9.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 276 bytes |
| コンパイル時間 | 106 ms |
| コンパイル使用メモリ | 6,816 KB |
| 実行使用メモリ | 16,128 KB |
| 最終ジャッジ日時 | 2024-07-07 16:39:10 |
| 合計ジャッジ時間 | 1,973 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 24 WA * 1 |
ソースコード
#!/usr/bin/env gosh
(define (order-times x y l)
(+
(if (zero? x) 0 1)
(if (< y 0) 1 0)
(ceiling (/ (abs x) l))
(ceiling (/ (abs y) l))
)
)
(define (main _)
(let* ([x (read)][y (read)][l (read)])
(display (order-times x y l))
)
(newline)
0)
MOD9cXWdOsRxvPy