結果
| 問題 | No.48 ロボットの操縦 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-03-05 22:08:06 |
| 言語 | Fortran (gFortran 16.1.0) |
| 結果 |
AC
|
| 実行時間 | 0 ms / 5,000 ms |
| + 980µs | |
| コード長 | 446 bytes |
| 記録 | |
| コンパイル時間 | 433 ms |
| コンパイル使用メモリ | 38,528 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-07-26 09:22:05 |
| 合計ジャッジ時間 | 1,323 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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