結果
| 問題 |
No.1819 Mirrored 2
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-01-22 11:01:26 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 308 bytes |
| コンパイル時間 | 229 ms |
| コンパイル使用メモリ | 81,868 KB |
| 実行使用メモリ | 77,772 KB |
| 最終ジャッジ日時 | 2024-11-27 05:37:53 |
| 合計ジャッジ時間 | 5,638 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 1 WA * 1 RE * 24 |
ソースコード
p,q,x,y = map(int,input().split())
now = y
while True:
cand = int(str(now)[::-1])
if cand%p == x:
break
now += q
for i in range(p):
if pow(10,i,p) == now:
k = i
break
for i in range(p):
if pow(10,i,p) == x:
l = i
break
print(pow(10,l-k,p)*now)