結果

問題 No.859 路線A、路線B、路線C
ユーザー gew1fw
提出日時 2025-06-12 17:10:02
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 216 bytes
コンパイル時間 343 ms
コンパイル使用メモリ 82,096 KB
実行使用メモリ 53,844 KB
最終ジャッジ日時 2025-06-12 17:10:10
合計ジャッジ時間 1,426 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 5 WA * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

x, y, z = map(int, input().split())
S0, t0 = input().split()
t0 = int(t0)
S1, t1 = input().split()
t1 = int(t1)

if S0 == S1:
    print(abs(t0 - t1))
else:
    if t0 == t1:
        print(1)
    else:
        print(2)
0