Skip to content

UVa 10494

WinDaLex edited this page Sep 15, 2013 · 1 revision

If We Were a Child Again

from Volume 1. Elementary Problem Solving :: Big Number

Description

输入一个整除或求余的表达式,计算出结果。注意:运算符两边有一个或多个空格。

Solution

用Java的BigInteger轻松撸完。也可以模拟竖式的计算来做。虽然这里高精度除法的除数是单精度的,但是懒得写了……本来想套模板,直接减法减到底,无奈会TLE。

Clone this wiki locally