結果
| 問題 | No.2558 中国剰余定理 |
| コンテスト | |
| ユーザー |
mymelochan
|
| 提出日時 | 2023-12-02 14:32:25 |
| 言語 | PyPy3 (7.3.23 + ac-library) |
| 結果 |
AC
不安定
|
| 実行時間 | 89 ms / 2,000 ms |
| + 1µs | |
| コード長 | 616 bytes |
| 記録 | |
| コンパイル時間 | 230 ms |
| コンパイル使用メモリ | 96,076 KB |
| 実行使用メモリ | 83,840 KB |
| 最終ジャッジ日時 | 2026-09-05 00:27:46 |
| 合計ジャッジ時間 | 4,291 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 29 |
ソースコード
#############################################################
import sys
sys.setrecursionlimit(10**7)
from heapq import heappop,heappush
from collections import deque,defaultdict,Counter
from bisect import bisect_left, bisect_right
from itertools import product,combinations,permutations
from math import sin,cos
#from math import isqrt #DO NOT USE PyPy
ipt = sys.stdin.readline
iin = lambda :int(ipt())
lmin = lambda :list(map(int,ipt().split()))
#############################################################
A,B,a,b = lmin()
for x in range(10**8):
if x%A == a and x%B == b:
print(x)
exit()
mymelochan