結果
| 問題 | No.3679 なんかでっかい虫リターンズ |
| コンテスト | |
| ユーザー |
lotoka
|
| 提出日時 | 2026-09-06 21:35:03 |
| 言語 | Fortran (gFortran 16.1.0) |
| 結果 |
AC
不安定
|
| 実行時間 | 0 ms / 2,000 ms |
| + 964µs | |
| コード長 | 511 bytes |
| 記録 | |
| コンパイル時間 | 1,324 ms |
| コンパイル使用メモリ | 37,632 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2026-09-06 21:35:06 |
| 合計ジャッジ時間 | 2,413 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 17 |
ソースコード
program yuki3679
implicit none
integer h, w, a, b, r1, c1, r2, c2, p, q, x, y
read (*,*) h, w
read (*,*) a, b
read (*,*) r1, c1, r2, c2
read (*,*) p, q
if (a < r1) then
x = r1
else if (a > r2) then
x = r2
else
x = a
end if
if (b < c1) then
y = c1
else if (b > c2) then
y = c2
else
y = b
end if
write (6,fmt='(I0)') abs(x-a) + abs(y-b) + abs(p-x) + abs(q-y) + abs(a-p) + abs(b-q)
end program yuki3679
lotoka