結果
| 問題 | No.2558 中国剰余定理 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-12-02 14:33:46 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 250 ms / 2,000 ms |
| + 908µs | |
| コード長 | 602 bytes |
| 記録 | |
| コンパイル時間 | 251 ms |
| コンパイル使用メモリ | 96,212 KB |
| 実行使用メモリ | 98,852 KB |
| 最終ジャッジ日時 | 2026-09-05 00:30:17 |
| 合計ジャッジ時間 | 9,926 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 29 |
ソースコード
from collections import defaultdict, deque, Counter
import copy
from itertools import combinations, permutations, product, accumulate, groupby, chain
from heapq import heapify, heappop, heappush
import math
import bisect
from pprint import pprint
from random import randint
import sys
# sys.setrecursionlimit(200000)
input = lambda: sys.stdin.readline().rstrip('\n')
inf = float('inf')
mod1 = 10**9+7
mod2 = 998244353
def ceil_div(x, y): return -(-x//y)
#################################################
A, B, a, b = map(int, input().split())
x = 0
while x%A != a or x%B != b:
x += 1
print(x)