码迷,mamicode.com
首页 > 其他好文 > 详细

51Nod1029 大数除法

时间:2019-10-19 19:00:08      阅读:56      评论:0      收藏:0      [点我收藏+]

标签:input   solution   pre   problem   计算   大整数   ble   nod   除法   

Problem

给出2个大整数A,B,计算A / B和A Mod B的结果。

Solution

Code

a=int(input())
b=int(input())
c=a//b
print(c)
print(a-c*b)

51Nod1029 大数除法

标签:input   solution   pre   problem   计算   大整数   ble   nod   除法   

原文地址:https://www.cnblogs.com/sz-wcc/p/11704773.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!