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
contest
AtCoder Beginner
Contest
219 D - Strange Lunchbox
https://atcoder.jp/
contest
s/abc219/tasks/abc219_d第一眼看出是一道动态规划,只不过限制状态有两层f[i][j][k]表示前i个物品第一个约束条件取j个第二个约束条件取
Henry_WYH
·
2024-02-19 22:01
AtCoder
动态规划
动态规划
AtCoder Beginner
Contest
192 F - Potion 背包dp
传送门题意:给你nnn个数,让后让你选出来kkk个AAA,把他们求和,之后再递增kkk直到正好达到xxx,求最小的递增次数。思路:转化一下题意就是求∑A=x( mod len)\sumA=x(\bmod\\len)∑A=x(modlen),且∑A\sumA∑A最大,考虑如何解决∑A\sumA∑A最大的问题。设f[i][j][k]f[i][j][k]f[i][j][k]表示前iii个数选了jjj个且
YB Lin
·
2024-02-19 22:31
dp
AtCoder
AtCoder Beginner
Contest
216 D - Pair of Balls 大模拟
D参考dfs那里很妙:队列i和local成对子,一起pop后要继续搜loca,因为i在退出dfs后会继续在while里判断,如果还有又进dfs;#includeusingnamespacestd;typedeflonglongll;typedefpairpii;#definepbpush_back#definefifirst#definesesecond#definemem(a,x)memset(
karshey
·
2024-02-19 22:01
我的ACM之路
C++
AtCoder Beginner
Contest
239 (A - E)
A-Horizon题意:给你一个xxx,输出x(12800000+x)\sqrt{x(12800000+x)}x(12800000+x)的值做法:直接输出,注意精度#includeusingnamespacestd;typedeflonglongLL;typedefpairPII;constintN=100010;longlongt,n,m;intmain(void){ios::sync_with
谪星.
·
2024-02-19 22:00
AtCoder
算法
(AtCoder Beginner
Contest
341)(A - D)
比赛地址:Tasks-ToyotaProgramming
Contest
2024#2(AtCoderBeginner
Contest
341)A.Print341模拟就好了,先放一个1,然后放n个01;#include
ros275229
·
2024-02-19 22:57
atcoder
算法学习
atcoder
算法
c++
AtCoder Beginner
Contest
338(A~E补题)
文章目录ABC题D题E题A签到#include#definerep(i,a,b)for(inti=(a);i=(b);--i)#definelsp#definelllonglong#defineullunsignedlonglong#definedbdouble#defineendl'\n'#definedebug(a)cout>str;boolst=true;rep(i,0,str.size()
wa的一声哭了
·
2024-02-15 07:34
atcode
算法
数据结构
mybatis
django
java
eclipse
spring
boot
牛客竞赛-新手上路-语法入门-选择结构.c
F吃瓜群众链接:https://ac.nowcoder.com/acm/
contest
/19304/F来源:牛客网题目描述群众想要吃瓜,于是给你一个瓜让你切,但是作为考验告诉你西瓜的重量,问你能否将这个西瓜分成两部分
傲寒439
·
2024-02-15 01:53
c语言
上岸算法 I LeetCode Weekly
Contest
219解题报告
No.1比赛中的配对次数解题思路模拟过程即可,较简单。代码展示classSolution{publicintnumberOfMatches(intn){intres=0;while(n>1){res+=n/2;n=(n+1)/2;}returnres;}}No.2十-二进制数的最少数目解题思路取决于最大的数字是多少。代码展示classSolution{publicintminPartitions(
上岸算法
·
2024-02-14 18:56
DFS+BFS练习
A-RedandBlackhttps://vjudge.net/
contest
/241948#problem/AThereisarectangularroom,coveredwithsquaretiles.Eachtileiscoloredeitherredorblack.Amanisstandingonablacktile.Fromatile
婳儿
·
2024-02-14 13:16
DFS和BFS
P1506 拯救oibh总部---洪水填充问题(bfs解)
因为中间部分如果是没被覆盖的,就是周围一定有****,这说明这个点一定与边界连不上,反过来想,从两边向中间延申(如果是0的话),这样被填充的部分就是被淹没的部分//Problem://P1506拯救oibh总部////
Contest
why_not_fly
·
2024-02-14 11:20
宽度优先
算法
AtCoder Beginner
Contest
340 C - Divide and Divide【打表推公式】
原题链接:https://atcoder.jp/
contest
s/abc340/tasks/abc340_cTimeLimit:2sec/MemoryLimit:1024MBScore:300points
lianxuhanshu_
·
2024-02-14 01:25
数学
算法
【小赛1】蓝桥杯双周赛第5场(小白)思路回顾
我的成绩:小白(5/6)完稿时间:2024-2-13比赛地址:https://www.lanqiao.cn/oj-
contest
/newbie-5/相关资料:1、出题人题解:“蓝桥杯双周赛·第5次强者挑战赛
清风莫追
·
2024-02-13 22:28
愚公搬算法
蓝桥杯
职场和发展
python
算法
AtCoder Beginner
Contest
340D - Super Takahashi Bros
problemlinkThennnstagesantheirmutualpathwayscanbeintuitivelyseenasgraph,withstagesasnodes,andthepathwaysasedges.Theproblemseemstosolvablebysomeclevergreedyalgorithmduetothesemitree-likestructureofthen
PYL2077
·
2024-02-13 21:14
题解
AtCoder
算法
AtCoder Beginner
Contest
340E - Mancala 2
problemlinkUnravellingthemodulararithmeticoperations,theproblemisquiteobviouslyadatastructureproblem,withsegmentmodificationscansinglepointqueries.Theseoperationscaneasilybemaintaintedbyabasicsegmentt
PYL2077
·
2024-02-13 21:14
AtCoder
题解
算法
牛客寒假算法基础集训营4-J-Applese 的减肥计划
链接:https://ac.nowcoder.com/acm/
contest
/330/J来源:牛客网已知Applese两只手分别产生的力的大小,以及它们之间的夹角,试求两力合力的大小。
Honyelchak
·
2024-02-13 13:10
算法刷题
c++
2018暑期牛客多校第七场 J-Sudoku Subrectangles
链接:https://www.nowcoder.com/acm/
contest
/145/J来源:牛客网SudokuSubrectangles时间限制:C/C++1秒,其他语言2秒空间限制:C/C++32768K
余西子
·
2024-02-12 21:06
牛客
牛客周赛 Round 32 E.小红的回文数【挖掘性质+哈希前缀和】
原题链接:https://ac.nowcoder.com/acm/
contest
/75174/E时间限制:C/C++1秒,其他语言2秒空间限制:C/C++262144K,其他语言524288K64bitIOFormat
lianxuhanshu_
·
2024-02-12 18:18
基础算法
哈希算法
算法
数据结构
牛客周赛 Round 32 F.小红的矩阵修改【三进制状态压缩dp】
原题链接:https://ac.nowcoder.com/acm/
contest
/75174/F时间限制:C/C++1秒,其他语言2秒空间限制:C/C++262144K,其他语言524288K64bitIOFormat
lianxuhanshu_
·
2024-02-12 18:46
动态规划
算法
动态规划
AtCoder Beginner
Contest
340C - Divide and Divide
problemlinkNaively,abruteforcerecursionsolutionbeimplementedwithO(n)\mathcalO(n)O(n)complexity.intwork(intx){if(x==1)return0;returnx+work(x>>1)+work((x>>1)+(x&1))}However,sinceallpossiblexxxcanberepre
PYL2077
·
2024-02-12 05:24
题解
AtCoder
算法
字符串 Leetcode 557 反转字符串中的单词
示例1:输入:"Let'stakeLeetCode
contest
"输出:"s'teLekatedoCteeLtsetnoc"注意:在字符串中,每个单词由单个空格分隔,并且字符串中不会有任何额外的空格。
禾木清清
·
2024-02-12 00:45
《算法笔记》3.1小节——入门模拟->简单模拟
@[TOC]
Contest
100000575-《算法笔记》3.1小节——入门模拟->简单模拟1814ProblemA剩下的树来自http://codeup.cn/
contest
.php?
木子李_0961
·
2024-02-11 14:13
AtCoder Beginner
Contest
339 (ABCDEFG题)
A-TLDProblemStatementYouaregivenastringSSSconsistingoflowercaseEnglishlettersandthecharacter..PrintthelastsubstringwhenSSSissplitby.s.Inotherwords,printthelongestsuffixofSSSthatdoesnotcontain..Constra
阿史大杯茶
·
2024-02-11 08:21
Atcoder
Atcoder
算法
c++
KAJIMA CORPORATION
CONTEST
2024(AtCoder Beginner
Contest
340)ABCDEF 视频讲解
这场比较郁闷,C题短路,连续4次WA,导致罚时太多A-ArithmeticProgressionProblemStatementPrintanarithmeticsequencewithfirsttermAAA,lasttermBBB,andcommondifferenceDDD.Youareonlygiveninputsforwhichsuchanarithmeticsequenceexists
阿史大杯茶
·
2024-02-11 08:50
Atcoder
Atcoder
算法
c++
AtCoder Regular
Contest
171(A~B)
A-NoAttackingN*N棋盘上,放A个rook棋和B个pawn棋。条件1:假设(i,j)上有一个rook,那么这i行和这j列,都不能再有其他棋子。条件2:假设(i,j)上有一个pawn,那么(i-1,j)上不能有棋子。满足条件的情况下,能放完A个rook和B个pawn,输出Yes,放不完则输出No。分析:两个条件操作起来太麻烦了,先考虑把其中一个条件解决,条件2约束的只有两个格子,而条件1
zzc大魔王
·
2024-02-10 20:00
Atcoder
atcoder
算法
c++
数据结构
arc
思维
Japan Registry Services (JPRS) Programming
Contest
2024 (AtCoder Beginner
Contest
339)(A~C)
感觉区分度不明显,D题之后感觉都有arc的难度了。A-TLD输出字符串最后一个.之后的内容,比如www.baidu.com,输出com扫一遍输出#include//#defineintlonglong#defineper(i,j,k)for(int(i)=(j);(i)=(k);--(i))#definefrfirst#definesesecond#defineendl'\n'usingnames
zzc大魔王
·
2024-02-10 20:59
Atcoder
c++
算法
思维
模拟
atcoder
abc
自动导入文件夹下的文件require.context
webpack.docschina.org/guides/dependency-management/#requirecontextconstfirst=require.context('@/assets/image/
contest
羊驼626
·
2024-02-10 08:44
1094. The Largest Generation (25)
PAT-A1094,题目地址:https://www.patest.cn/
contest
s/pat-a-practise/1094这道题的关键是计算出每个人分别是第几代,然后数出每代人分别有多少个,取最大值即可
cheerss
·
2024-02-10 07:56
【力扣白嫖日记】SQL
表:Reigster列名类型
contest
_idintuser_i
Gary.Li
·
2024-02-10 04:44
力扣刷题
leetcode
sql
数据库
Codeforces Round 915 (Div. 2)
A.max(n,m)//Problem:A.ConstructiveProblems//
Contest
:Codeforces-CodeforcesRound915(Div.2)//URL:https:/
Lanthanmum
·
2024-02-09 19:38
算法
牛客周赛 Round 31 F.小红的连续段【隔板法+组合数学】
原题链接:https://ac.nowcoder.com/acm/
contest
/74362/F时间限制:C/C++1秒,其他语言2秒空间限制:C/C++262144K,其他语言524288K64bitIOFormat
lianxuhanshu_
·
2024-02-09 17:58
数学
算法
Day 20-prevail
todefeatanopponentespeciallyinalongordifficult
contest
,oftenfiguratively.Intheend,justiceprevail.常见意思,
两仪叶
·
2024-02-09 14:55
Codeforces Round 919 (Div. 2)(A-D)
ProblemsC.PartitioningtheArray思路标程ProblemsD.ArrayRepetition思路标程超时代码(思路较直观)题目地址:https://codeforces.com/
contest
鱼香rose__
·
2024-02-08 23:01
codeforces
算法
牛客寒假算法基础集训营6 题解报告
比赛地址:https://ac.nowcoder.com/acm/
contest
/332#questionA:考虑一下极限位置就行#includeusingnamespacestd;#definelllonglongintconstintINF
甦萌
·
2024-02-08 22:03
KEYENCE Programming
Contest
2021 A - Two Sequences 2(思维)
题意:解法:注意到i必须满足usingnamespacestd;#defineintlonglongconstintmaxm=2e5+5;intans[maxm];inta[maxm];intb[maxm];intn;signedmain(){ios::sync_with_stdio(0);cin>>n;for(inti=1;i>a[i];for(inti=1;i>b[i];intaa=-1;fo
live4m
·
2024-02-08 10:18
补题与总结:AtCoder Beginner
Contest
333 D、E
文章目录写在最前面的复盘D-EraseLeavesE-TakahashiQuest写在最前面的复盘前三题属于是凑数题,下次争取快点a掉,这次wa了一次C题写了个三指针,从小到大枚举出满足题意的数,其实可以直接暴力枚举满足题意的数,但是会有重复的,用set去重即可,赛时没想到,三指针磨了很久。原来暴力也是门艺术,什么时候适合暴力也是门学问啊,自己对于这块的理解确实不够深以为D题读懂了题意,然后写写写
.SacaJawea
·
2024-02-08 00:44
练习赛补题
深度优先
算法
牛客周赛 Round 31 D.小红数组操作【哈希双链表+设置哨兵】
原题链接:https://ac.nowcoder.com/acm/
contest
/74362/D时间限制:C/C++1秒,其他语言2秒空间限制:C/C++262144K,其他语言524288K64bitIOFormat
lianxuhanshu_
·
2024-02-08 00:05
数据结构
哈希算法
算法
链表
数据结构
AtCoder Beginner
Contest
339 B.Langton‘s Takahashi【模拟】
原题链接:https://atcoder.jp/
contest
s/abc339/tasks/abc339_bTimeLimit:2sec/MemoryLimit:1024MBScore:250points
lianxuhanshu_
·
2024-02-07 23:32
基础算法
算法
牛客周赛 Round 31 E.小红的子集取反【dp+设置偏移量】
原题链接:https://ac.nowcoder.com/acm/
contest
/74362/E时间限制:C/C++1秒,其他语言2秒空间限制:C/C++262144K,其他语言524288K64bitIOFormat
lianxuhanshu_
·
2024-02-07 23:02
动态规划
算法
动态规划
AtCoder Beginner
Contest
262(ABC262)A-Ex 题解
A-WorldCup我懒得分类讨论,直接枚举。#include#defineMax(a,b)((ab)&&(a=b))usingnamespacestd;inlineintread(){intx=0,f=1;staticcharch;while(ch=getchar(),ch=48);returnf?x:-x;}intmain(){intn=read();while(n%4!=2)n++;prin
cyl06
·
2024-02-07 12:28
题解
c++
算法
第 45 届国际大学生程序设计竞赛(ICPC)亚洲网上区域赛模拟赛 Easy Equation
链接:https://ac.nowcoder.com/acm/
contest
/8688/A来源:牛客网Youaregivenfourpositiveintegers,,,,pleasehelplittleMcalculatethenumberofequations
FACELESS VOID
·
2024-02-07 02:27
竞赛算法练习
算法
动态规划
Contest
100000607 - 《算法笔记》7.3小节——数据结构专题(1)->链表处理
文章目录
Contest
100000607-《算法笔记》7.3小节——数据结构专题(1)->链表处理7.3链表处理7.3.1链表的概念7.3.2使用malloc函数或new运算符为链表结点分配内存空间7.3.3
李霁明
·
2024-02-07 00:58
算法笔记刷题笔记
算法笔记
数据结构
链表
Codeforces Round #552 (Div. 3)每日两刷(E.Two Teams(vector),F. Shovels Shop(DP)G. Minimum Pos数论 2019/4/17
E.TwoTeams题目链接:http://codeforces.com/
contest
/1154/problem/ETherearenstudentsstandinginarow.Twocoachesareformingtwoteams—thefirstcoachchoosesthefirstteamandthesecondcoachchoosesthesecondteam.Thei-thstu
*Slime*
·
2024-02-06 17:06
每日训练
训练赛
Codeforces
Round
#552
(Div.
3)
E.Two
Teams(vector)
F.
Shovels
Shop(DP)
2024牛客寒假算法基础集训营1题解 | JorbanS
文章目录[A-DFS搜索](https://ac.nowcoder.com/acm/
contest
/67741/A)[B-关鸡](https://ac.nowcoder.com/acm/
contest
/
JorbanS
·
2024-02-06 14:51
OI
题解
算法
深度优先
数据结构
c++
题目:1633.各赛事的用户注册率
题目来源:leetcode题目,网址:1633.各赛事的用户注册率-力扣(LeetCode)解题思路:将Register表按
contest
_id分组聚合后,计算平均值并四舍五入到小数点后两位即可。
十年一觉尘与土
·
2024-02-06 11:27
#
SQL
leetcode
sql
力扣题目-1633.各赛事的用户注册率
注册表:RegisterColumnNameType
contest
_idintuser_idint(
contest
_id,user_id)是该表的主键(具有唯一值
徐子元竟然被占了!!
·
2024-02-06 11:56
练习题目
leetcode
mysql
Codeforces Beta Round #8 C. Looking for Order 状压
C.LookingforOrder题目连接:http://www.codeforces.com/
contest
/8/problem/CDescriptionGirlLenalikesitwheneverythingisinorder
weixin_30663471
·
2024-02-05 17:51
数据结构与算法
Codeforces Beta Round #8 C. Looking for Order 状压DP,路径记录
题目链接:http://codeforces.com/
contest
/8/problem/C题意:平面上有n个物品,这个小朋友会去拿这些物品,然后拿到返回包的位置。
just_sort
·
2024-02-05 17:48
ACM/ICPC_动态规划
ACM/ICPC_状压dp
#8 C. Looking for Order (状压dp + 路径记忆)
题目链接:点击打开链接http://codeforces.com/
contest
/8/problem/C题意:給定原点(sx,sy),以及N個坐标X,Y。每次至多选两个坐标,依序拜访完后,回到原点。
LzyRapX
·
2024-02-05 17:48
ACM_状压&状压DP
codeforces
#8
C
.
Looking
for
Order
状压dp
路径记忆
CF1878 补题报告
https://codeforces.com/
contest
/1878A.HowMuchDoesDaytonaCost?
Daniel_1011
·
2024-02-05 00:34
c++
Codeforces - 1300C ( 位运算 )
Codeforces-1300C(位运算)题目链接:http://codeforces.com/
contest
/1300/problem/C题意:定义:,给长度为n的一个序列问如何排列,的值最大输出对应的序列
九羽-
·
2024-02-05 00:39
CodeForces
Div.2
上一页
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
其他