結果

問題 No.2558 中国剰余定理
ユーザー kou_kkk
提出日時 2024-03-28 10:10:43
言語 Nim
(2.2.0)
結果
WA  
実行時間 -
コード長 213 bytes
コンパイル時間 3,046 ms
コンパイル使用メモリ 65,280 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-09-30 14:42:14
合計ジャッジ時間 3,909 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 27 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

import sequtils, strutils

let
  xs = stdin.readLine.split.map parseInt
  a = xs[0]
  b = xs[1]
  x = xs[2]
  y = xs[3]

for i in 1..100000000:
  if (i mod a) == x:
    if (i mod b) == y:
      echo i
      quit()
0