結果

問題 No.1819 Mirrored 2
ユーザー ytftytft
提出日時 2022-02-14 12:24:45
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 161 bytes
コンパイル時間 1,412 ms
コンパイル使用メモリ 86,580 KB
実行使用メモリ 94,248 KB
最終ジャッジ日時 2023-09-11 16:03:28
合計ジャッジ時間 10,862 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
71,060 KB
testcase_01 AC 120 ms
75,980 KB
testcase_02 AC 407 ms
86,464 KB
testcase_03 AC 204 ms
77,940 KB
testcase_04 AC 99 ms
76,000 KB
testcase_05 AC 165 ms
77,640 KB
testcase_06 AC 445 ms
90,900 KB
testcase_07 AC 295 ms
82,412 KB
testcase_08 AC 415 ms
88,568 KB
testcase_09 AC 93 ms
75,748 KB
testcase_10 AC 465 ms
91,792 KB
testcase_11 WA -
testcase_12 AC 261 ms
81,652 KB
testcase_13 AC 190 ms
78,980 KB
testcase_14 AC 478 ms
94,248 KB
testcase_15 AC 103 ms
75,868 KB
testcase_16 AC 134 ms
76,756 KB
testcase_17 AC 284 ms
83,420 KB
testcase_18 AC 164 ms
77,448 KB
testcase_19 AC 158 ms
77,196 KB
testcase_20 AC 93 ms
75,708 KB
testcase_21 WA -
testcase_22 AC 216 ms
78,572 KB
testcase_23 AC 130 ms
76,680 KB
testcase_24 AC 272 ms
81,372 KB
testcase_25 AC 143 ms
77,100 KB
testcase_26 AC 385 ms
89,684 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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)
0