传统题 400ms 64MiB

A-1 Super A - B

该比赛已结束,您无法在比赛模式下递交该题目。您可以点击“在题库中打开”以普通模式查看和递交本题。

Xiao K: Your mastery of A + B is already exceptional, but how would you handle it if I threw you a curveball with A - B?
Xiao C: ...Huh?
Xiao K: Naturally, my A - B isn't just any ordinary subtraction...
You are tasked with calculating the precise result of ABA - B , where AA and BB are real numbers in (0,1)(0, 1) .

输入格式

Each input file contains one test case, which gives AA and BB , each in a line satisfying 0<AB<10 \lt A\neq B \lt 1 .
It is guaranteed that AA and BB have at most 10510^5 decimal places.

输出格式

Output the exact result of ABA - B .
Note : Any missing digits after the decimal point are implicitly treated as zeros. For instance, 0.10.1 should be taken as 0.10000000.1000000\dots
The result should not contain any unnecessary trailing zeros. For instance, the result of 0.150.050.15 - 0.05 should be 0.10.1 , not 0.100.10 .

题目示例数据

0.3289312903809158091238572881785912387582317578912375
0.483291480135890385123853120985901328501385091385319855890315890315903158903120958139085231980
-0.15436018975497457599999583280731008974315333349408235589031589031590315890312095813908523198

PAT2024冬季重现赛

未参加
状态
已结束
规则
IOI
题目
11
开始于
2025-7-27 14:00
结束于
2025-7-27 17:30
持续时间
3.5 小时
主持人
参赛人数
50