会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
itdef
2021年2月7日
PAT 甲级 1002 A+B for Polynomials
摘要: 地址 https://pintia.cn/problem-sets/994805342720868352/problems/994805526272000000 题目大意是 输入两个多项式的变量参数和变量指数 按照指定规则显示出来 Sample Input: 2 1 2.4 0 3.2 2 2 1.
阅读全文
posted @ 2021-02-07 23:42 itdef
阅读(72)
评论(0)
推荐(0)
PAT 甲级 1001 A+B Format
摘要: 地址 https://pintia.cn/problem-sets/994805342720868352/problems/994805528788582400 Calculate a+b and output the sum in standard format -- that is, the d
阅读全文
posted @ 2021-02-07 23:34 itdef
阅读(92)
评论(0)
推荐(0)
LeetCode 1748. 唯一元素的和 哈希
摘要: 地址 https://leetcode-cn.com/problems/sum-of-unique-elements/ 给你一个整数数组 nums 。数组中唯一元素是那些只出现 恰好一次 的元素。 请你返回 nums 中唯一元素的 和 。 示例 1: 输入:nums = [1,2,3,2] 输出:4
阅读全文
posted @ 2021-02-07 12:51 itdef
阅读(106)
评论(0)
推荐(0)
LeetCode 1749. 任意子数组和的绝对值的最大值 动态规划
摘要: 地址 https://leetcode-cn.com/problems/maximum-absolute-sum-of-any-subarray/ 给你一个整数数组 nums 。一个子数组 [numsl, numsl+1, ..., numsr-1, numsr] 的 和的绝对值 为 abs(num
阅读全文
posted @ 2021-02-07 12:49 itdef
阅读(173)
评论(0)
推荐(0)
LeetCode 1750. 删除字符串两端相同字符后的最短长度 双指针
摘要: 地址 https://leetcode-cn.com/problems/minimum-length-of-string-after-deleting-similar-ends/ 给你一个只包含字符 'a','b' 和 'c' 的字符串 s ,你可以执行下面这个操作(5 个步骤)任意次: 选择字符串
阅读全文
posted @ 2021-02-07 12:47 itdef
阅读(93)
评论(0)
推荐(0)
导航
博客园
首页
新随笔
联系
订阅
管理
公告