Commit a8de8b31 by BellCodeEditor

auto save

parent 576b5884
Showing with 39 additions and 0 deletions
# a=int(input("写入一个整数"))
# b=int(input("写入一个整数"))
# print(a*b)
#
# 输入一个大于200的分钟时
# 输出(24时制)的时间,比如:输入250,输出:4h10m
# a=int(input("输入一个大于200的分钟时"))
# b=a//60
# c=a%60
# d=b//24
# b=b%24
# print(d,"t",b,"h",c,"m")
# 输入一位百位数
# 输出这个数的十位数
# a=int(input("输入一位百位数"))
# b=a//10
# b=b%10
# print(b)
# 共有30个头,88只脚。
# 求笼中鸡兔各有多少只?
# for a in range(1,31):
# for b in range(1,31):
# if a+b==30 and 2*a+4*b==88:
# print(a,b)
# f=open(r'F:\mot.txt','a+')
# print("命运是靠自己掌握,而不是别人给予。",file=f)
# f.close()
#随意输入两个正数
#输出这个两个正数的积
#例如: 输入100分钟,
# 输出:1h40m
a=int(input(""))
b=a//60
c=a%60
print(b,"h",c,"m",sep='')
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment