已经死了
已经死了
全部文章
分类
题解(13)
归档
标签
去牛客网
登录
/
注册
已经死了的博客
全部文章
(共5篇)
题解 | CDEF题解
CDEF题解 爱音开灯 class PrimeTable: def __init__(self, n=int((10**9)**0.5)+3) -> None: &n...
pypy3
Python3
2024-06-09
4
342
题解 | 牛客周赛 Round 42
A 先手选n-1个就必胜,只有n=1的时候先手必败 s=input() if len(s)==1: print("yukari") else: print("kou") B模拟一下 mod=10**9+7 n=int(input()) a=li...
Python3
pypy3
2024-05-12
13
516
题解 | #小红的树上赋值(hard)#
F-小红的树上赋值(hard)_牛客周赛 Round 41 (nowcoder.com) from types import GeneratorType from collections import defaultdict de...
Python3
pypy3
2024-05-06
4
454
题解 |牛客周赛 Round 38题解
这周没什么人写题解,那就我来写一下吧,不会排版xjb写的,大家xjb看一下就行了 a题 n=int(input()) res=0 while n%10!=0: n+=1 &n...
pypy3
Python3
字符串
动态规划
哈希表
数学
贪心
二分查找
双指针
树状数组
2024-03-25
2
366
题解 | #Different Integers#
思路离线查询,树状数组维护 查询按右端点r排序,遍历查询,当一个数字全出现了,那就把这个数字第一次出现的下标单点+1 查询[l+1,r-1]的区间和,用总的去减就可以了 import sys,random,bisect from collections import deque,defaultdic...
Python3
pypy3
树状数组
2023-07-13
0
397