ArmorH
ArmorH
全部文章
分类
题解(6)
归档
标签
去牛客网
登录
/
注册
ArmorH的博客
全部文章
(共6篇)
题解 | #kiki算数#
a,b = input().split() a,b = int(a),int(b) c = str(a+b)[-2:] if c[-2] == "0": print(c[-1:]) else: print(c[-2:])
Python3
2021-09-22
0
284
题解 | #出生日期输入输出#
import datetime brith = input() print("year={}\nmonth={}\ndate={}".format(brith[:4],brith[4:6],brith[-2:]))
Python3
2021-09-22
2
569
题解 | #斐波那契数列#
# -*- coding:utf-8 -*- class Solution: def Fibonacci(self, n): f1,f2,sum = 1,1,0 if n==0: return 0 if n <= ...
Python3
2021-09-22
2
549
题解 | #学生基本信息输入输出#
info = input().split(";") number,src = info[0],[float(i)+0.0001 for i in info[1].split(",")] print("The each subject score of...
Python3
2021-09-22
7
702
题解 | #十六进制转十进制#
sumcc = 0 BoBo_list = ['A','B','C','D',"E","F"] BoBo_list.reverse() for count,i in enumerate(BoBo_list): factor = 10+ord(i)-65...
Python3
2021-09-22
1
389
题解 | #有容乃大#
intSize_dict = {"short":2,"int":4,"long":8,"long long":8} for k,v in intSize_dict.items(): print("The...
Python3
2021-09-22
4
461