結果
| 問題 |
No.2099 [Cherry Alpha B] Time Machine
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-10-17 19:40:28 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 180 bytes |
| コンパイル時間 | 212 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-06-28 09:34:31 |
| 合計ジャッジ時間 | 4,347 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 WA * 71 |
ソースコード
import math
t=math.fabs(int(input()))
x,a=list(map(int,input().split()))
y,b=list(map(int,input().split()))
gcd=math.gcd(a-x,b+y)
if t%gcd==0:
print(gcd)
else:
print(t%gcd)