結果

問題 No.8063 幅優先探索
ユーザー vwxyz
提出日時 2022-09-07 00:57:10
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 41 ms / 2,000 ms
コード長 293 bytes
コンパイル時間 140 ms
コンパイル使用メモリ 12,288 KB
実行使用メモリ 11,520 KB
最終ジャッジ日時 2024-11-22 01:14:28
合計ジャッジ時間 1,497 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import defaultdict
import sys
from typing import Counter
readline=sys.stdin.readline
write=sys.stdout.write
from math import gcd as GCD
import math

readline()
S=list(map(int,readline().split()))
G=list(map(int,readline().split()))
ans=abs(S[0]-G[0])+abs(S[1]-G[1])
print(ans)
0