Skip to content

11517: 【原1517】高精度减法

题目

题目描述

author: 徐亦飞 原OJ链接:https://acm.sjtu.edu.cn/OnlineJudge-old/problem/1517

Description

Design a powerful calculator which can handle ‘a-b’ with a very big number a and b. *Hint: Remember a small number minus a bigger one will lead to a negative number. (This is the problem A for SEIEE-Yu Yong Data Structure 2015 Fall Exam 1)

Input Format

Two rows, the first row is a, the second one is b.

Output Format

One row only, the answer.

Sample Input

12345
23456

Sample Output

-11111

Limits

  • 10% a , b < 65536
  • 40% a , b < 2^64
  • 100% a , b < 10^100000

Oops! 本题目还没有解答!

助教老师们编题的速度,已经超过了解题的速度!

OJ翻了一新,但本解答集还大多用的是2017-2019级,甚至更早的同学们贡献的答案。

如果你已经AC了,可以的话,请您参考添加页面,与大家一起分享你的题解!