牛客583973415号
牛客583973415号
全部文章
分类
题解(2)
归档
标签
去牛客网
登录
/
注册
牛客583973415号的博客
全部文章
(共13篇)
题解 | #蛇形矩阵#
while True: try: n = int(input().strip()) &nbs...
Python3
2022-08-27
0
295
题解 | #最大子矩阵#
N = input().strip() N = int(N) matrix = list() for i in range(N): M = ...
Python3
2022-08-03
0
321
题解 | #识别有效的IP地址和掩码并进行分类统计#
import sys from collections import Counter def valid_ip(ip): p = ip.split('.')  ...
Python3
2022-08-03
0
365
题解 | #求小球落地5次后所经历的路程和第5次反弹的高度#
x = int(input().strip()) print(sum([x / (2 ** (n - 2)) for n in range(1, 6)]) -&...
Python3
2022-08-02
0
247
题解 | #字符串加解密#
c = input() p = input() def change(i): if ord('A') <= ord(i) <= ord('...
Python3
2022-08-02
4
236
题解 | #字符串排序#
alph = list('qwertyuiopasdfghjklzxcvbnm') alph.sort() while True: try: &nbs...
Python3
2022-08-02
0
267
题解 | #购物单#
x = input() N, m = x.split(' ') N, m = int(N), int(m) price, weight, q_type, score&n...
Python3
动态规划
2022-08-02
0
469
题解 | #扑克牌大小#
a, b = input().strip().split('-') poker_map = { '2': 15, '3': 3, '4': 4,&nb...
Python3
2022-07-31
0
316
题解 | #简单错误记录#
import os from collections import Counter errors = Counter() error_order = list() while 1: &...
Python3
2022-07-31
0
328
题解 | #数字颠倒#
x = list(input()) x.reverse() print(''.join(x))
Python3
2022-06-07
0
260
首页
上一页
1
2
下一页
末页