結果

問題 No.2558 中国剰余定理
ユーザー 21kazu1321kazu13
提出日時 2023-12-04 13:05:17
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 83 ms / 2,000 ms
コード長 1,067 bytes
コンパイル時間 595 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 66,308 KB
最終ジャッジ日時 2023-12-04 13:05:21
合計ジャッジ時間 3,875 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 61 ms
65,796 KB
testcase_01 AC 62 ms
65,796 KB
testcase_02 AC 67 ms
66,308 KB
testcase_03 AC 61 ms
65,796 KB
testcase_04 AC 83 ms
66,308 KB
testcase_05 AC 59 ms
65,796 KB
testcase_06 AC 60 ms
65,796 KB
testcase_07 AC 60 ms
65,796 KB
testcase_08 AC 67 ms
66,308 KB
testcase_09 AC 63 ms
66,308 KB
testcase_10 AC 67 ms
66,308 KB
testcase_11 AC 66 ms
66,308 KB
testcase_12 AC 63 ms
66,308 KB
testcase_13 AC 61 ms
66,308 KB
testcase_14 AC 62 ms
66,308 KB
testcase_15 AC 63 ms
66,308 KB
testcase_16 AC 69 ms
66,308 KB
testcase_17 AC 62 ms
66,308 KB
testcase_18 AC 70 ms
66,308 KB
testcase_19 AC 70 ms
66,308 KB
testcase_20 AC 63 ms
66,308 KB
testcase_21 AC 66 ms
66,308 KB
testcase_22 AC 62 ms
66,308 KB
testcase_23 AC 62 ms
66,308 KB
testcase_24 AC 70 ms
66,308 KB
testcase_25 AC 69 ms
66,308 KB
testcase_26 AC 62 ms
66,308 KB
testcase_27 AC 63 ms
66,308 KB
testcase_28 AC 66 ms
66,308 KB
testcase_29 AC 62 ms
66,308 KB
testcase_30 AC 65 ms
66,308 KB
testcase_31 AC 63 ms
66,308 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python3
import sys
from bisect import bisect_left, bisect_right, insort_left, insort_right  # type: ignore
from collections import Counter, defaultdict, deque  # type: ignore
from math import gcd, sqrt, ceil  # type: ignore
from heapq import heapify, heappop, heappush, heappushpop, heapreplace, merge  # type: ignore
from itertools import accumulate, combinations, permutations, product  # type: ignore
from string import ascii_lowercase, ascii_uppercase # type: ignore

def LI(): return list(map(int, sys.stdin.buffer.readline().split()))
def I(): return int(sys.stdin.buffer.readline())
def LS(): return sys.stdin.buffer.readline().rstrip().decode("utf-8").split()
def S(): return sys.stdin.buffer.readline().rstrip().decode("utf-8")
def IR(n): return [I() for _ in range(n)]
def LIR(n): return [LI() for _ in range(n)]
def SR(n): return [S() for _ in range(n)]
def LSR(n): return [LS() for _ in range(n)]
def SRL(n): return [list(S()) for _ in range(n)]

A,B,a,b = LI()
for i in range(A*B):
    if i%A==a and i%B==b:
        print(i)
        break
0