
ACM训练
文章平均质量分 82
新时代原始人
这个作者很懒,什么都没留下…
展开
-
LeetCode-42 接雨水(动态规划解法)
原题接雨水Problem Description给定 n 个非负整数表示每个宽度为 1 的柱子的高度图,计算按此排列的柱子,下雨之后能接多少雨水。Sample1输入:height = [0,1,0,2,1,0,1,3,2,1,2,1]输出:6解释:上面是由数组 [0,1,0,2,1,0,1,3,2,1,2,1] 表示的高度图,在这种情况下,可以接 6 个单位的雨水(蓝色部分表示雨水)。Sample2输入:height = [4,2,0,3,2,5]输出:9Tipn == heig原创 2021-04-21 17:06:50 · 443 阅读 · 0 评论 -
HDU-2266(How Many Equations Can You Find)
题目链接:https://vjudge.net/problem/HDU-2266原题How Many Equations Can You Find Problem DescriptionNow give you an string which only contains 0, 1 ,2 ,3 ,4 ,5 ,6 ,7 ,8 ,9.You are asked to add the sign ...原创 2019-03-31 23:41:40 · 302 阅读 · 0 评论 -
Maths
原题Maths Problem DescriptionAndroid Vasya attends Maths classes. His group started to study the number theory recently. The teacher gave them several tasks as a homework. One of them is as follows....原创 2019-04-11 02:39:11 · 495 阅读 · 0 评论 -
PTA Factorial Factors
原题Factorial FactorsProblem DescriptionGiven a positive integer N, we could effectively figure out all the factors of N,as N1,N2…NK are aggregate k factors of N(including 1 and N itself).This prob...原创 2019-04-16 21:07:48 · 385 阅读 · 0 评论 -
HRY and Abbas
原题HRY and AbbasProblem DescriptionIn a parallel universe, HRY is the president of the Kassel Academy Student Union. Once he and the Lionheart Association President Abdullah Abbas performed a secre...原创 2019-04-28 22:33:54 · 215 阅读 · 0 评论