E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
codeforces周赛
Codeforces
Round 995 (Div. 3)
A.PreparingfortheOlympiad题目描述Monocarp和Stereocarp正在准备奥林匹克。现在仅剩nnn天奥林匹克就要开始了。在这第iii天,如果Monocarp准备训练,那么他将完成aia_iai题,同样的,如果Stereocarp也在这天准备训练,那么他将完成bib_ibi题。Monocarp可以在任意一天进行训练,然而,Stereocarp在观察他,并且学习他的计划:
polarours
·
2025-03-19 13:17
Codeforces
算法
c++
数据结构
题解 | 牛客
周赛
Round 41 BCDEF Java
题解|#学好C++##includeintmain(){printf(&qu中国电子工程设计院的工作环境办公环境较好,工作时间正常是8-9点弹性上班11.30吃午饭,13.00午休结束,下午17.00下良品铺子视觉设计师岗面经因为武汉的良品铺子是本土比较大的企业,所以参加了他们视觉设计师岗面试,共3轮面试,简单记录下面试过程阿里闲鱼|Java&前端|24届急聘|杭州【招聘岗位】:闲鱼技术部,Jav
huaxinjiayou
·
2025-03-19 08:05
java
题解 | 牛客
周赛
Round 49 DEF Java题解
面试又黄了反正不是什么喜欢的工作[牛泪]面试又黄了反正不是什么喜欢的工作2024秋招数据开发第一波面试题露出#字节##滴滴##大数据##面经##秋招#引流字节阿里巴巴腾讯百度美团美团后端暑期实习体验——实习的一天早上:8点半出门坐地铁,9点下地铁到惠新西街南口地铁站,出地铁站坐班车(这一点还是不错的),9点30深圳阿里实习day1领工牌mac,认工位mentor,配环境看文档,七点就润了。看各个文
han_xue_feng
·
2025-03-19 08:05
java
牛客
周赛
Round 54 题解(A~E)
牛客
周赛
Round54题解A清楚姐姐的糖葫芦思路解析:显然只需要数字符串的字符o的个数即可。
TCaaaaa
·
2025-03-19 08:34
算法
图论
c++
牛客
周赛
Round 50
A题:小红的最小最大思路:大水题code:inlinevoidsolve(){inta,b,c;cin>>a>>b>>c;if(min(a,b)+c>max(a,b))cout>a>>b>>c;intcur=a+b+c;ans=max(ans,cur);cur=a*b+c;ans=max(ans,cur);cur=a+b*c;ans=max(ans,cur);cur=a*b*c;ans=max(a
菜比乌斯反演
·
2025-03-19 08:32
牛客
算法
数据结构
Codeforces
1793C. Dora and Search
题目链接:https://
codeforces
.com/problemset/problem/1793/Ctimelimitpertest:1second;memorylimitpertest:256megabytesAsyouknow
弗雷德的青蛙
·
2025-03-18 15:49
python
constructive
two
pointers
data
structures
803A. Maximal Binary Matrixcon
题目链接:https://
codeforces
.com/problemset/problem/803/Atimelimitpertest:1second;memorylimitpertest:256megabytesYouaregivenmatrixwithnrowsandncolumnsfilledwithzeroes.Youshouldputkonesinitinsuchawaythatthe
弗雷德的青蛙
·
2025-03-17 11:33
python
constructive
算法
Codeforces
158B. Taxi
题目题目链接:https://
codeforces
.com/problemset/problem/158/Btimelimitpertest:3seconds;memorylimitpertest:256megabytesAfterthelessonsngroupsofschoolchildrenwentoutsideanddecidedtovisitPolycarpustocelebratehi
弗雷德的青蛙
·
2025-03-17 00:14
python
贪心算法
Codeforces
Round 995 (Div. 3)
A.PreparingfortheOlympiad题解:#includeusingnamespacestd;intmain(){intt;cin>>t;vectora;vectorb;vectorans;while(t--){intn=0,num=0,temp=0;cin>>n;for(inti=0;i>num;a.push_back(num);}for(inti=0;i>num;b.push_b
polarours
·
2025-03-13 12:33
Codeforces
算法
c++
数据结构
2024 CCPC 第18届东北四省联赛 The 18th Northeast Collegiate I. Password 【计数DP】
I.Password传送门:https://
codeforces
.com/gym/105173题意一个长度为nnn的序列aaa,每一项都是[1,k][1,k][1,k]的正整数。
吵闹的人群保持笑容多冷静
·
2025-03-10 14:11
算法
动态规划
Deepseek-R1性能指标
目录Figure基准测试任务1.AIME2024(Pass@1)2.
Codeforces
(Percentile)3.GPQADiamond(Pass@1)4.MATH-500(Pass@1)5.MMLU
ZHOU_CAMP
·
2025-03-10 08:31
agent
论文解读
人工智能
agent
Codeforces
Round 903 (Div. 3) E. Block Sequence
题解:想到从后向前DPf[i]表示从i~n转化为“美观”所需要的最少的步骤第一种转移方式:直接删除掉第i个元素,那么就是上一步f[i+1]加上1;第二种转移方式:从第i+a[i]+1个元素直接转移,不需要增加步数;注意边界问题以及初始化,f[n+1]=0;#includeusingnamespacestd;#defineintlonglong#definedebug(x)cerrPII;const
H_z___
·
2025-03-06 16:56
算法
c++
Educational
Codeforces
Round 95 (Rated for Div. 2) C. Mortal Kombat Tower
人生中第一道初见一遍过的DP,感觉自己还是有进步的。题目:YouandyourfriendareplayingthegameMortalKombatXI.Youaretryingtopassachallengetower.Therearennnbossesinthistower,numberedfrom111tonnn.Thetypeoftheiii-thbossisaia_iai.Iftheii
H_z___
·
2025-03-06 16:56
算法
Codeforces
Beta Round 4 (Div. 2 Only) 4D. Mysterious Present (最长上升子序列变形)
题目:PeterdecidedtowishhappybirthdaytohisfriendfromAustraliaandsendhimacard.Tomakehispresentmoremysterious,hedecidedtomakeachain.ChainhereissuchasequenceofenvelopesA = {a1, a2, ..., an},wherethewidth
H_z___
·
2025-03-06 16:55
算法
Game with Binary String ( [Educational
Codeforces
Round 175 (Rated for Div. 2)])
GamewithBinaryString(Educational
Codeforces
Round175(RatedforDiv.2))Considerthefollowinggame.Twoplayershaveabinarystring
BoBoo文睡不醒
·
2025-03-05 10:09
acm训练集合
数据结构
树状数组
【菜笔cf刷题日常-1600】C. Balanced Stone Heaps(二分求min/max)
链接:https://
codeforces
.com/problemset/problem/1062/D题意:给你一个序列,从i=3开始到i=n进行操作,每一次操作可以将a[i]减去3*d(d对于每一次操作都是任意的
IamDickman
·
2025-03-04 21:57
二分
codeforces
蓝桥杯月赛--灯笼猜谜
算法双
周赛
#include#include#includeusingnamespacestd;intmain(){intN,M;cin>>N>>M;vector>intervals(N);for(inti
2301_80673831
·
2025-03-03 18:59
蓝桥杯
职场和发展
codeforces
1600 分题目泛刷
本文为
codeforces
1600分,顺序以过题人数为排序关键字的题目题解目前已更新前50题Problem-431C-K-tree标签:类似背包dp思路:f[i][0/1]走到某一点时,表示总得分为i时
Exiled_Code
·
2025-02-27 14:59
算法
c++
Codeforces
Round 986 (Div. 2) ABCD
https://
codeforces
.com/contest/2028A.Alice’sAdventuresin“Chess”题意有一个无限大的地图,地图的原点有一个机器人,即他起初在坐标(0,0)(0,0
lskkkkkkkkkkkk
·
2025-02-26 19:08
题解
C++
c++
洛谷 CF2022A:Bus to Pénjamo ← 模拟题
【题目来源】https://www.luogu.com.cn/problem/CF2022Ahttps://
codeforces
.com/contest/2022/problem/A【题目描述】有n个家庭前往佩恩哈莫
hnjzsyjyj
·
2025-02-26 05:57
信息学竞赛
#
模拟算法与基础语法
算法
Codeforces
1637E Best Pair
tags枚举暴力中文题面给你一个长度为nnn的数组aaa。设cntxcnt_xcntx是数组中等于xxx的元素个数。再将f(x,y)f(x,y)f(x,y)定义为(cntx+cnty)⋅(x+y)(cnt_x+cnt_y)\cdot(x+y)(cntx+cnty)⋅(x+y)。此外,我们还得到了mmm个坏数对(xi,yi)(x_i,y_i)(xi,yi)。请注意,如果(x,y)(x,y)(x,y)
特别萌新的小白
·
2025-02-19 23:40
c++
算法
Codeforces
Round #771 (Div. 2)
A.ReverseYouaregivenapermutationp1,p2,…,pnoflengthn.Youhavetochoosetwointegersl,r(1≤l≤r≤n)andreversethesubsegment[l,r]ofthepermutation.Thepermutationwillbecomep1,p2,…,pl−1,pr,pr−1,…,pl,pr+1,pr+2,…,pn.
狗蛋儿l
·
2025-02-19 04:38
codeforces
leetcode
LeetCode 第 211 场
周赛
(哈希表、字符串(取模、枚举)、排序+最长上升子序列和、筛法求约数+并查集)
《一线大厂Java面试题解析+核心总结学习笔记+最新讲解视频+实战项目源码》,点击传送门,即可获取!for(inti=0;i
2401_84046816
·
2025-02-18 03:37
程序员
leetcode
散列表
面试
Codeforces
Round 1004(Div.2) B. Two Large Bags 补题 + 题解 python
B.TwoLargeBagshttps://
codeforces
.com/contest/2067/problem/B题目描述timelimitpertest:1secondmemorylimitpertest
查理零世
·
2025-02-17 23:54
python
算法
Remove Exactly Two ( [
Codeforces
Round 1000 (Div. 2)](httpsmirror.
codeforces
.comcontest2063) )
RemoveExactlyTwo(
Codeforces
Round1000(Div.2))Recently,LittleJohngotatreefromhisaunttodecoratehishouse.Butasitseems
BoBoo文睡不醒
·
2025-02-17 19:15
acm训练集合
搜索
dfs
数据结构
Codeforces
Round 977 (Div. 2)E1 Digital Village (Easy Version)(Floyd,贪心)
题目链接
Codeforces
Round977(Div.2)E1DigitalVillage(EasyVersion)思路首先,我们注意到nnn的最大值只有400400400。
Auto114514
·
2025-02-15 20:07
Codeforces
算法
c++
数据结构
图论
蓝桥
周赛
题目分享
1.四个亲戚在字符串后加上即可,答案输出。#includeusingnamespacestd;typedeflonglongll;intmain(){coutusingnamespacestd;typedeflonglongll;intmain(){intn,m,k;cin>>n>>m>>k;vectora(n);for(inti=0;i>a[i];}sort(a.begin(),a.end())
勾魂凉皮
·
2025-02-14 20:48
算法
c++
蓝桥杯
【LeetCode
周赛
】6433.矩阵中移动的最大次数
动态规划五部曲classSolution{public:intmaxMoves(vector>&grid){/*动态规划解决单序列问题:根据题目的特点找出当前遍历元素对应的最优解(或解的数目)和前面若干元素(通常是一个或两个)的最优解(或解的数目)的关系,并以此找出相应的状态转移方程。从题目的描述来看,需要从当前遍历的元素dp更新未来的dp值,这显然不符合动态规划的思想,所以需要将问题进行转换,转
积跬步方千里
·
2025-02-14 19:14
LeetCode
leetcode
算法
CF Round 1004 记录 & 题解(div.1 A - D1 & div.2 D - F)
今天上午VP
Codeforces
Round1004(Div.2),下午改
Codeforces
Round1004(Div.1)。上午C题因为少判了一个条件,罚时吃饱了。
JeremyHe1209
·
2025-02-13 22:57
算法
力扣312场
周赛
:按身高排序
本文以python为编程语言,题目来源于力扣312届
周赛
题目:给你一个字符串数组names,和一个由互不相同的正整数组成的数组heights。两个数组的长度均为n。
_焱_
·
2025-02-10 17:28
力扣
python
算法
力扣
周赛
:第419场
周赛
作者简介:爱好技术和算法的研究生上期文章:力扣
周赛
:第415场
周赛
订阅专栏:力扣
周赛
希望文章对你们有所帮助因为一些特殊原因,这场比赛就打了1h,所以只AC了前面两题。
布布要成为最强的人
·
2025-02-10 16:24
力扣
测试专栏
leetcode
算法
java
lambda
数据结构
SMU winter 2025 Personal Round 2
Problem-D-
Codeforces
思路://在给定数中取x,y,z使得(x-y)^2+(y-z)^2+(z-x)^2最值.
osir.
·
2025-02-08 12:41
枚举
Codeforces
Educational
Codeforces
Round 170 (Rated for Div. 2)
A-TwoScreens大意:给两个字符串,每次在两个空子符串进行两种操作1、字符串末尾加一个任意字母2、一个字符串全部复制给另一个字符串求得到给定的两个字符串的最小操作数思路:看最前面有多少相等即可当时想多了。。。代码:#includeusingnamespacestd;#defineintlonglongconstintN=2e5+10,INF=0x3f3f3f3f;constintmod=1
关于SPFA它死了
·
2025-02-04 11:11
Codeforces
算法
c++
[
CodeForces
]8
G.MaximizetheRemainingString由小写字母组成的字符串sss,每次从中选取重复的字母进行删除,直到该字符串中的每个字母都只出现一次。问:最终形成的字典序最大的字符串,比如ababababababababab,答案为bababa。1≤len(s)≤2000001\leqlen(s)\leq2000001≤len(s)≤200000题解记s=a1a2a3⋯ans=a_1a_2a
天之道,利而不害
·
2025-02-03 22:35
codeforce
C - Nastya Is Transposing Matrices
CodeForces
- 1136C
C.NastyaIsTransposingMatricestimelimitpertest1secondmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputNastyacametoherinformaticslesson,andherteacherwhois,bytheway,alittlebitfamousher
Gee_Zer
·
2025-02-03 22:34
思维
An impassioned circulation of affection (
Codeforces
Round 418 (Div. 2) )
Animpassionedcirculationofaffection(
Codeforces
Round418(Div.2))Nadeko’sbirthdayisapproaching!
BoBoo文睡不醒
·
2025-02-03 22:04
acm训练集合
暴力枚举
dp
双指针
Codeforces
Round 988 (Div. 3)
Codeforces
Round988(Div.3)C.Superultra’sFavoritePermutationtimelimitpertest2secondsmemorylimitpertest256megabytes
BoBoo文睡不醒
·
2025-02-03 22:04
codeforces
笔记
Nastya Is Transposing Matrices (
Codeforces
Round 546 (Div. 2) )
NastyaIsTransposingMatrices(
Codeforces
Round546(Div.2))Nastyacametoherinformaticslesson,andherteacherwhois
BoBoo文睡不醒
·
2025-02-03 22:04
acm训练集合
构造
Not Escaping (
Codeforces
Round 766 (Div. 2) )
NotEscaping(
Codeforces
Round766(Div.2))MajorRamisbeingchasedbyhisarchenemyRaghav.Rammustreachthetopofthebuildingtoescapeviahelicopter.Thebuilding
BoBoo文睡不醒
·
2025-02-03 01:38
acm训练集合
dp
数据结构
模拟
最短路
leetcode5186.区间内查询数字的频率(
周赛
,中等)
看到调用query不超过10^5次,则query()必须控制在O(logn)以内自己的思路:定义一个unordered_maphash;//值->set的下标映射autole=hash[value].lower_bound(left);for(;*lehash;//值->vector下标映射classRangeFreqQuery{public:unordered_map>hash;RangeFre
重you小垃
·
2025-02-02 20:36
周赛题
letcode5186
区间内查询数字的频率
【
codeforces
764B】Timofey and cubes
timelimitpertest1secondmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputYoungTimofeyhasabirthdaytoday!Hegotkitofncubesasabirthdaypresentfromhisparents.Everycubehasanumberai,whichisw
adgnfega11455
·
2025-02-02 09:15
数据结构与算法
Codeforces
Round 130 (Div. 2) E. Blood Cousins(LCA+DFS序+二分)【2100】
题目链接https://
codeforces
.com/contest/208/problem/E思路此题有两个要点:第一,快速找到节点uuu的ppp级祖先。
Auto114514
·
2025-02-01 20:14
ACM—树
深度优先
算法
图论
Codeforces
Round 276 (Div. 1) B. Maximum Value(数学+二分)【2100】
题目链接https://
codeforces
.com/contest/484/problem/B思路a mod ba\,mod\,bamodb可以转化成a−k×ba-k\timesba−k×b,其中k=
Auto114514
·
2025-02-01 20:13
ACM—数学
算法
Codeforces
Round 642 (Div. 3) E. K-periodic Garland(DP+前缀和)
题目链接https://
codeforces
.com/contest/1353/problem/E思路令dp[i][0/1]dp[i][0/1]dp[i][0/1]分别表示第iii个字符是000或者111
Auto114514
·
2025-02-01 20:43
ACM—DP
动态规划
算法
Codeforces
Round 974 (Div. 3) H题 Robin Hood Archery(基础莫队,随机异或哈希)
题目链接
Codeforces
Round974(Div.3)H题RobinHoodArchery思路1因为警长是后手,按照最优的策略,只有每一种数的个数是偶数个的时候,警长会平局,否则警长会输。
Auto114514
·
2025-02-01 20:13
Codeforces
哈希算法
散列表
算法
c++
数据结构
牛客
周赛
Round 65(A—G)
比赛链接牛客
周赛
Round65A题思路谁的单价低就全选哪一个。
Auto114514
·
2025-02-01 20:13
牛客竞赛
算法
F. Greetings
题目链接:Problem-F-
Codeforces
题目大意:给你n个线段,求有多少对(两个)线段满足完全覆盖,例如:设一个线段有a,b两点,满足aiusingnamespacestd;usingi64=
L_M_TY
·
2025-02-01 17:47
算法
归并排序
求逆序对
Epidemic in Monstropolis(
Codeforces
Round 378 (Div. 2) )
EpidemicinMonstropolis(
Codeforces
Round378(Div.2))TherewasanepidemicinMonstropolisandallmonstersbecamesick.Torecover
BoBoo文睡不醒
·
2025-02-01 15:31
acm训练集合
模拟
双指针
贪心
F. Ira and Flamenco
题目链接:Problem-F-
Codeforces
题目大意:给n,mn个数让从中选m个数满足一下条件:1.m个数互不相同2.里面的任意两个数相减的绝对值不能超过m求这n个数有多少组数据满足。
L_M_TY
·
2025-01-31 11:41
算法
滑动窗口
乘法原理
乘法逆元
牛客
周赛
Round 77 题解
文章目录A-时间表B-数独数组D-隐匿社交网络E-1or0A-时间表签到题#includeusingnamespacestd;intmain(){inta[6]={20250121,20250123,20250126,20250206,20250208,20250211};intn;cin>>n;coutusingnamespacestd;constintN=1e5+10;inta[10];int
free-9d
·
2025-01-30 00:53
数据结构
算法
贪心算法
启发式算法
上一页
1
2
3
4
5
6
7
8
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他