1.13 编程基础之综合应用 47 大整数除法方法 python
生活随笔
收集整理的這篇文章主要介紹了
1.13 编程基础之综合应用 47 大整数除法方法 python
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
http://noi.openjudge.cn/ch0113/47/
""" 1.13 編程基礎之綜合應用 47 大整數除法方法一 http://noi.openjudge.cn/ch0113/47/python 大整數的精確計算——除法(/)、整數除法(//) https://blog.csdn.net/tz_zs/article/details/121020236""" #m,n=map(int,input().split()) m=input() n=input() #print(m) #print(n)ans=int(m)//int(n)print(int(ans))""" 1.13 編程基礎之綜合應用 47 大整數除法 方法二 http://noi.openjudge.cn/ch0113/47/python 大整數的精確計算——除法(/)、整數除法(//) https://blog.csdn.net/tz_zs/article/details/121020236""" print(int(input())//int(input()))
""" 1.13 編程基礎之綜合應用 47 大整數除法 方法三 http://noi.openjudge.cn/ch0113/47/python 大整數的精確計算——除法(/)、整數除法(//) https://blog.csdn.net/tz_zs/article/details/121020236""" a=int(input()) b=int(input()) print(a//b)
""" 1.13 編程基礎之綜合應用 47 大整數除法(4分) http://noi.openjudge.cn/ch0113/47/python 大整數的精確計算——除法(/)、整數除法(//) https://blog.csdn.net/tz_zs/article/details/121020236""" #m,n=map(int,input().split()) m=input() n=input() #print(m) #print(n)ans=int(m)/int(n)print(int(ans))
總結
以上是生活随笔為你收集整理的1.13 编程基础之综合应用 47 大整数除法方法 python的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: PHP给后台管理系统加安全防护机制的一些
- 下一篇: 1982:【19CSPJ普及组】数字游戏