結果
| 問題 | No.1819 Mirrored 2 | 
| コンテスト | |
| ユーザー |  Sumitacchan | 
| 提出日時 | 2022-01-21 22:07:44 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 332 bytes | 
| コンパイル時間 | 342 ms | 
| コンパイル使用メモリ | 82,560 KB | 
| 実行使用メモリ | 76,928 KB | 
| 最終ジャッジ日時 | 2024-11-26 00:30:10 | 
| 合計ジャッジ時間 | 5,598 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 1 | 
| other | AC * 21 WA * 5 | 
ソースコード
# -*- coding: utf-8 -*-
import random
def rev(N):
    s = str(N)
    s = s[::-1]
    return int(s)
if __name__ == '__main__':
    P, Q, x, y = map(int, input().split())
    while True:
        k = random.randint(0, 10**12)
        N = k * Q + y
        if rev(N) % P == x:
            ans = rev(N)
            break
    print(ans)
            
            
            
        