A
算法:模拟【1】
顺序遍历字符串 3 遍,第一遍输出小写字母,第二遍输出数字,第三遍输出大写字母。
B
算法:数学【1】/ 二分【4】(雾)
我们考虑一个大致的位置 ans = b * c / d,然后再来偏移一下,具体二分过不了不知道是为什么?
C
算法:模拟【1】
考虑到 n 和 c 很小,
展开全文
思路很简单,直接上代码
from sys import stdin
input = stdin.readline
t = int(input())
def sumdigit(x):
return sum(int(i) for i in str(x))
def f(ltrue,rtrue,te
展开全文