whiteg
whiteg
全部文章
分类
归档
标签
去牛客网
登录
/
注册
whiteg的博客
全部文章
(共6篇)
题解 | #23年OPPO-a的翻转#
a = input() print(int(a)+int(a[::-1]))
2024-11-19
0
14
题解 | #小美的因子查询#
t = int(input()) for _ in range(t): n = int(input()) if n & 1: print('NO') else: print('YES')
2024-11-19
0
10
题解 | #游游的数字圈#
s = input() cnt = 0 for i in s: if i == '0': cnt += 1 elif i == '6': cnt += 1 elif i == '9': cnt += 1 elif i =...
2024-11-19
0
10
题解 | #游游的整数切割#
s = input() ''' 奇数 + 奇数 or 偶数 + 偶数 ''' cnt = 0 if int(s[-1]) & 1: for i in s[:-1]: if int(i) & 1: cnt += 1 else: f...
2024-11-19
0
10
题解 | #小欧的奇数#
n = int(input()) line = list(map(int,input().split())) cnt_0 = 0 cnt_1 = 0 for i in line: if i & 1: cnt_1 += 1 else: cnt_0...
2024-11-19
0
12
题解 | #小红的字符串构造#
s = list(input()) n = len(s) dic = sorted(set(s)) t = [-1]*n s1 = len(dic) for i in range(n): t[i] = dic[(dic.index(s[i]) + 1)%s1] if s1 > 1: ...
2024-11-19
1
10