Tidying UpTime Limit: 4000msMemory Limit: 262144KBThis problem will be judged onCodeForces. Original ID:316C164-bit integer IO format:%I64d Java class...
转载 2015-07-19 20:52:00
57阅读
2评论
A. Elections time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output The country of Byalechinsk is running elections involving n candidat
转载 2017-06-07 16:42:00
76阅读
给定一位研究者论文被引用次数的数组(被引用次数是非负整数)。编写一个方法,计算出研究者的 h 指数。h 指数
原创 2021-06-14 23:04:20
239阅读
题意:给定一个字符串,里面有各种小写字母和’ . ' ,无论是什么字母,都是一样的,假设遇到' . . ' ,就要合并成一个' .',有m个询问,每次都在字符串某个位置上将原来的字符改成题目给的字符,问每次须要多少次合并次数。才使字符串没有‘ .. ' 思路:最原始的想法,就是对于每一次询问,都遍历整个字符串。这样时间复杂度o(n*m),就高达10^10方,非常明显会tle。 换下思路,事实
转载 2017-07-16 12:18:00
142阅读
2评论
C. Replacementtime limit per test2 secondsmemory limit per test256 megabytesinputting of lowerca
原创 2023-04-20 21:37:17
64阅读
本周周赛太拉跨,只做出了2题。T3一直坐牢到比赛结束。当时看了下T3和T4都是har
原创 2022-10-29 18:57:29
148阅读
C. ReplacementTime Limit: 20 SecMemory Limit: 256 MB题目连接http://codeforces.com/contest/570/problem/CDescriptionDaniel has a strings, consisting of lowe...
原创 2021-07-16 14:03:43
128阅读
nchapi...
Android Weekly Issue #316本期内容包含教你使用Kotlin通过Annotation Processor生成代码文件, JetPack中的Android KTX, 以及升级到Target26所需要注意的东西,还包含如何使用KTX简化AndroidX里面的Slice的Build,以及如何通过MotionLayout方便实现动画的系列,还有MLKit中扫条形码的Lib介绍,以及一
转载 2021-06-02 15:59:29
104阅读
给你一个字符串 s ,请你去除字符串中重复的字母,使得每个字母只出现一次。需保证 返回结果的字典序最小(要求不能打乱其他字符的相对位置)。 注意:该题与 1081 https://leetcode-cn.com/problems/smallest-subsequence-of-distinct-ch
转载 2020-10-27 22:37:00
143阅读
2评论
Given a string which contains only lowercase letters, remove duplicate letters so th
原创 2022-08-03 21:02:09
20阅读
Return the lexicographically smallest subsequence of s that contains all the distinct characters of s exactly once. Note: This question is the same as
ico
转载 2020-10-12 07:33:00
159阅读
2评论
给你一个字符串 s ,请你去除字符串中重复的字母,使得每个字母只出现一次。需保证 返回结果的字典序最小(要求不能打乱其他字符的相对位置)。 注意:该题与 1081 https://leetcode-cn.com/problems/smallest-subsequence-of-distinct-ch
转载 2020-12-20 10:45:00
58阅读
2评论
Given a string which contains only lowercase letters, remove duplicate letters so that every letter appears once and only once. You must make sure you
转载 2019-11-22 00:13:00
76阅读
2评论
VS2013编译程序时出现错误:fatal error C1189: #error : "No Target Architecture"。解决方案如下
原创 2018-06-05 16:09:28
10000+阅读
作者: 负雪明烛id: fuxuemingzhu个人博客: http://fuxuemingzhu.cn/目录题目描述题目大意解题方法日期题目地址:https://leetcode.com/problems/remove-duplicate-letters/题目描述Given a string which contains only lowercase letters, remove...
原创 2022-02-17 14:28:43
126阅读
C. ReplacementTime Limit: 20 SecMemory Limit: 256 MB题目连接http://codeforces.com/contest/570/problem/CDescriptionDaniel has a strings, consisting of lowe...
原创 2021-07-16 14:03:44
73阅读
作者: 负雪明烛id: fuxuemingzhu个人博客
原创 2021-07-14 16:29:17
199阅读
error C4189: : 局部变量已初始化但不引用 前面加一个#pragma warning(disable:4189)
转载 2014-04-23 15:59:00
194阅读
2评论
#include <iostream>//#include <string>int main(){ std::string str = "test"; std::cout <<str<< std::endl; return 0;}上述代码报错
原创 2022-12-23 00:21:36
122阅读
  • 1
  • 2
  • 3
  • 4
  • 5