牛客892888367号
牛客892888367号
全部文章
分类
归档
标签
去牛客网
登录
/
注册
牛客892888367号的博客
全部文章
(共18篇)
题解 | #数字颠倒#
import sys input_data =sys.stdin.read().strip() num = int(input_data) str1 = str(num) for i in str1[::-1]: print(i,end="")
2024-06-06
0
101
题解 | #字符个数统计#
import sys input_data = sys.stdin.read().strip() def count_unique_characters(s): uni_str = set() for i in s: asc_code = ord(i) ...
2024-06-06
0
117
题解 | #合并表记录#
import sys input_data = sys.stdin.read().split() n = int(input_data[0]) D = {} for i in range(1,n*2,2): index = int(input_data[i]) value =...
2024-06-04
0
96
题解 | #取近似值#
import sys input_date = sys.stdin.read().strip() num = float(input_date) intnum = int(num) if num - intnum >= 0.5: print(intnum+1) else: ...
2024-06-02
0
95
题解 | #质数因子#
import sys import math input_date = sys.stdin.read().strip() number = int(input_date) num = [] def A(N): for i in range(2,int(math.sqrt(N))+1):...
2024-06-02
0
143
题解 | #进制转换#
import sys input_date = sys.stdin.read() for line in input_date.splitlines(): if line: num = int(line,16) print(num) else: ...
2024-06-02
0
113
题解 | #字符串分隔#
import sys input_date = sys.stdin.read() str1 = input_date.splitlines() for line in str1: if not line: continue while len(line) >...
2024-06-02
0
98
题解 | #明明的随机数#
import sys input = sys.stdin.read() date = input.splitlines() N = int(date[0]) date1 = set() for i in range(1,N+1): num = date[i] date1.add...
2024-06-02
0
124
首页
上一页
1
2
下一页
末页