結果
| 問題 | No.1819 Mirrored 2 | 
| コンテスト | |
| ユーザー |  ytft | 
| 提出日時 | 2022-02-14 12:24:45 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 161 bytes | 
| コンパイル時間 | 183 ms | 
| コンパイル使用メモリ | 82,504 KB | 
| 実行使用メモリ | 93,304 KB | 
| 最終ジャッジ日時 | 2024-06-29 06:10:11 | 
| 合計ジャッジ時間 | 6,467 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 1 | 
| other | AC * 24 WA * 2 | 
ソースコード
P,Q,x,y=map(int,input().split())
while int(str(y)[::-1])%P==0:
    y+=Q
ans=str(y)[::-1]
y=int(str(y)[::-1])%P
while y!=x:
    y=(y*10)%P
    ans+="0"
print(ans)
            
            
            
        