結果
| 問題 | No.1819 Mirrored 2 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-01-22 12:02:10 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
RE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 322 bytes |
| 記録 | |
| コンパイル時間 | 145 ms |
| コンパイル使用メモリ | 85,120 KB |
| 実行使用メモリ | 69,120 KB |
| 最終ジャッジ日時 | 2026-05-21 13:42:17 |
| 合計ジャッジ時間 | 3,734 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | RE * 26 |
ソースコード
p,q,x,y = map(int,input().split())
now = y
while True:
cand = int(str(now)[::-1])
if cand%p and now%10:
break
now += q
for i in range(p):
if pow(10,i,p) == cand%p:
k = i
break
for i in range(k,k+p):
if pow(10,i,p) == x:
l = i
break
print(pow(10,l-k)*cand)