Loading

上一页 1 ··· 30 31 32 33 34 35 36 37 38 ··· 74 下一页
摘要: 给你一个字符串表达式 s ,请你实现一个基本计算器来计算并返回它的值。 整数除法仅保留整数部分。 示例 1: 输入:s = "3+2*2" 输出:7 示例 2: 输入:s = " 3/2 " 输出:1 示例 3: 输入:s = " 3+5 / 2 " 输出:5 这个题实际上考的是字符串处理。。。 对 阅读全文
posted @ 2021-03-11 18:40 脂环 阅读(91) 评论(0) 推荐(0) 编辑
摘要: macOS下将GitHub中单个子文件夹下载到本地 参考博客:https://www.cnblogs.com/Hi-blog/p/9008932.html 命令行中使用homebrew安装subversion: brew install subversion 将子文件夹url地址中的tree/mas 阅读全文
posted @ 2021-03-11 09:06 脂环 阅读(135) 评论(0) 推荐(0) 编辑
摘要: Diamond Miner is a game that is similar to Gold Miner, but there are 𝑛n miners instead of 11 in this game. The mining area can be described as a plan 阅读全文
posted @ 2021-03-10 23:14 脂环 阅读(184) 评论(0) 推荐(0) 编辑
摘要: You are given a multiset S initially consisting of n distinct non-negative integers. A multiset is a set, that can contain some elements multiple time 阅读全文
posted @ 2021-03-10 23:10 脂环 阅读(271) 评论(0) 推荐(0) 编辑
摘要: A. Split it! Kawashiro Nitori is a girl who loves competitive programming. One day she found a string and an integer. As an advanced problem setter, s 阅读全文
posted @ 2021-03-10 23:05 脂环 阅读(184) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <cstdio> #include <cstdlib> #include <cstring> #include <cmath> #include <queue> #include <algorithm> #include <vector> u 阅读全文
posted @ 2021-03-06 16:34 脂环 阅读(57) 评论(0) 推荐(0) 编辑
摘要: 参考yyb大佬写的板子QAQ #include <iostream> #include<cstdio> #include<cstdlib> #include<cstring> #include<cmath> #include<queue> #include<algorithm> using name 阅读全文
posted @ 2021-03-06 13:53 脂环 阅读(67) 评论(0) 推荐(0) 编辑
摘要: 给定一个循环数组(最后一个元素的下一个元素是数组的第一个元素),输出每个元素的下一个更大元素。数字 x 的下一个更大的元素是按数组遍历顺序,这个数字之后的第一个比它更大的数,这意味着你应该循环地搜索它的下一个更大的数。如果不存在,则输出 -1。 示例 1: 输入: [1,2,1] 输出: [2,-1 阅读全文
posted @ 2021-03-06 08:31 脂环 阅读(65) 评论(0) 推荐(0) 编辑
摘要: 把第一个字符串拼接后就是hash + 最小表示法板子了。 #include <iostream> #include <cstring> #include <cstdio> using namespace std; const int N=4000010,P=131; string s, t, ss; 阅读全文
posted @ 2021-03-05 09:16 脂环 阅读(59) 评论(0) 推荐(0) 编辑
摘要: 链接:https://ac.nowcoder.com/acm/problem/212504 来源:牛客网 题目描述 小敏和小燕是一对好朋友。 他们正在玩一种神奇的游戏,叫Minecraft。 他们现在要做一个由方块构成的长条工艺品。但是方块现在是乱的,而且由于机器的要求,他们只能做到把这个工艺品最左 阅读全文
posted @ 2021-03-04 16:40 脂环 阅读(69) 评论(0) 推荐(0) 编辑
上一页 1 ··· 30 31 32 33 34 35 36 37 38 ··· 74 下一页