飞鸢泛惊鸿
飞鸢泛惊鸿
全部文章
分类
题解(4)
归档
标签
去牛客网
登录
/
注册
飞鸢泛惊鸿
人生自是有情痴,此恨不关风与月
全部文章
(共4篇)
题解 | #托米的位运算#
牛客 NC16762:托米的位运算(清晰题解) 题目链接:https://ac.nowcoder.com/acm/problem/16762 难度:中等偏思维 简洁版本 已知&的越多,最后结果越小 我们希望最后的b可以被2^v整除 根据贪心思想,v尽可能大就要从高位枚举,每一个数都包含...
pypy3
Python3
2026-04-30
0
11
题解 | #牛牛的xor#
很简单的一道题 用贡献法+贪心 对于每个数从高到低考虑 如果ans中这个位为0并且num值大于这个位转换成10进制 答案中加上 import sys input=sys.stdin.readline input() nums=list(map(int,input().split())) ans=0...
pypy3
Python3
2026-04-30
0
13
题解 | #Poi 的新加法(Hard Version)#
import sys input=sys.stdin.readline def solve(): n,q=map(int,input().split()) nums=list(map(int,input().split())) for _ in range(q): ...
pypy3
Python3
2026-04-26
1
21
题解 | #字符串构造#
这道题写个pass都能过,应该是只检测有没有SATAN了 下面是正解(应该?) s=input() #找前缀下标,定位到最后一个字母 def find(s,tar): idx=-1 for c in tar: idx=s.find(c,idx+1) ...
pypy3
Python3
字符串
构造
2026-04-20
4
28