結果

問題 No.1819 Mirrored 2
ユーザー ytftytft
提出日時 2022-02-14 12:26:17
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 443 ms / 2,000 ms
コード長 172 bytes
コンパイル時間 1,007 ms
コンパイル使用メモリ 86,640 KB
実行使用メモリ 94,552 KB
最終ジャッジ日時 2023-09-11 16:03:38
合計ジャッジ時間 8,586 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,144 KB
testcase_01 AC 103 ms
76,544 KB
testcase_02 AC 325 ms
86,640 KB
testcase_03 AC 169 ms
78,656 KB
testcase_04 AC 95 ms
76,176 KB
testcase_05 AC 165 ms
78,020 KB
testcase_06 AC 424 ms
91,364 KB
testcase_07 AC 282 ms
82,632 KB
testcase_08 AC 405 ms
88,636 KB
testcase_09 AC 92 ms
76,228 KB
testcase_10 AC 443 ms
92,156 KB
testcase_11 AC 134 ms
76,572 KB
testcase_12 AC 262 ms
82,296 KB
testcase_13 AC 197 ms
79,100 KB
testcase_14 AC 443 ms
94,552 KB
testcase_15 AC 95 ms
76,476 KB
testcase_16 AC 126 ms
76,804 KB
testcase_17 AC 267 ms
83,496 KB
testcase_18 AC 150 ms
77,912 KB
testcase_19 AC 147 ms
77,696 KB
testcase_20 AC 84 ms
76,304 KB
testcase_21 AC 85 ms
76,352 KB
testcase_22 AC 185 ms
79,108 KB
testcase_23 AC 132 ms
76,728 KB
testcase_24 AC 256 ms
81,508 KB
testcase_25 AC 146 ms
77,160 KB
testcase_26 AC 379 ms
90,000 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

P,Q,x,y=map(int,input().split())
while int(str(y)[::-1])%P==0 or y%10==0:
    y+=Q
ans=str(y)[::-1]
y=int(str(y)[::-1])%P
while y!=x:
    y=(y*10)%P
    ans+="0"
print(ans)
0