結果

問題 No.2099 [Cherry Alpha B] Time Machine
ユーザー a a
提出日時 2022-10-17 19:18:53
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 131 bytes
コンパイル時間 539 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-06-28 09:20:15
合計ジャッジ時間 4,250 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 1 WA * 71
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
t=int(input())
x,a=list(map(int,input().split()))
y,b=list(map(int,input().split()))
gcd=math.gcd(a-x,b+y)
print(t%gcd)
0