結果
| 問題 | No.48 ロボットの操縦 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-03-05 22:08:06 |
| 言語 | Fortran (gFortran 15.2.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 446 bytes |
| 記録 | |
| コンパイル時間 | 274 ms |
| コンパイル使用メモリ | 39,420 KB |
| 実行使用メモリ | 7,716 KB |
| 最終ジャッジ日時 | 2026-03-05 22:08:55 |
| 合計ジャッジ時間 | 1,052 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 25 |
ソースコード
program main
implicit none
real(8) :: X, Y, L
read *, X
read *, Y
read *, L
if (X == 0) then
if (Y >= 0) then
print *, ceiling(abs(Y) / L)
else
print *, ceiling(abs(Y) / L) + 2
end if
else if (Y >= 0) then
print *, ceiling(abs(Y) / L) + 1 + ceiling(abs(X) / l)
else
print *, ceiling(abs(Y) / L) + 2 + ceiling(abs(X) / l)
end if
end program main