阿达新
阿达新
全部文章
分类
题解(55)
归档
标签
去牛客网
登录
/
注册
阿达新的博客
全部文章
(共55篇)
题解 | #整型数组合并#
# -*-coding:utf-8-*- while True: try: input_m1 = int(input()) input_n1 = list(map(int,input().split(" "))) input_m2 = int(...
Python3
2022-03-20
0
173
题解 | #统计大写字母个数#
# -*-coding:utf-8-*- while True: try: input_m = input() n=0 for s in input_m: if s.isupper(): ...
Python3
2022-03-20
0
173
题解 | #尼科彻斯定理#
# -*-coding:utf-8-*- while True: try: input_m = input() int_num =int(input_m) fist_js = int_num**2-int_num+1 for ...
Python3
2022-03-20
0
160
题解 | #字符串字符匹配#
# -*-coding:utf-8-*- while True: try: input_m = input() input_n = input() flag='' for i in input_m: if...
Python3
2022-03-20
0
169
题解 | #求最大连续bit数#
# -*-coding:utf-8-*- while True: try: input_m = int(input()) int_b = bin(input_m).split("0b") int_l = list(int_b[1].spli...
Python3
2022-03-20
0
152
题解 | #百钱买百鸡问题#
# -*-coding:utf-8-*- def Buycheck(num): jiwen = 5 muji = 3 xiaoji = 1/3 for i in range(0,20): for j in range(0,33): ...
Python3
2022-03-20
1
206
题解 | #查找输入整数二进制中1的个数#
# -*-coding:utf-8-*- while True: try: input_m = int(input()) ib = bin(input_m) print(ib.count("1")) except: ...
Python3
2022-03-20
0
131
题解 | #查找组成一个偶数最接近的两个素数#
# -*-coding:utf-8-*- def ispri(num): if num<=1: return False for i in range(2,int(num**0.5)+1): if num%i==0: re...
Python3
2022-03-19
0
210
题解 | #输出单向链表中倒数第k个结点#
# -*-coding:utf-8-*- while True: try: input_n = int(input()) input_ss = list(input().split(" ")) input_k = int(input()) ...
Python3
2022-03-19
0
218
题解 | #统计字符#
# -*-coding:utf-8-*- while True: try: input_s = input() input_ss = list(input_s) str_n = 0 spce_n =0 num_...
Python3
2022-03-19
0
228
首页
上一页
1
2
3
4
5
6
下一页
末页