链接:http://codeforces.com/contest/680/problem/A    题意: 5个数字求删除2个相同或者3个相同之后剩下值之和的最小值//枚举每种情况找最小值#include using namespace std;int a[10];int main(){ int sum=0; for(int i=0;i<5;i++)
原创 2023-08-15 17:25:44
53阅读
昨天晚上实在是=_=困。。。(浪了一天)就没有去打Codeforces 中午醒来看看题,还不太难。 A题:模拟(水题 3minAC)// by Sirius_Ren#include #include #include using namespace std;int a[6],sum...
转载 2016-06-09 21:07:00
52阅读
链接:http://codeforces.com/contest/680/problem/B    题意:给你n个数字,你在a的位置,问你通过题给定的。。方法可以抓到多少个小偷//直接从a点开始向两边枚举#include using namespace std;int a[200];int main(){ int n,m; while(~s
原创 2023-08-15 17:25:40
80阅读
class Solution { public: bool validPalindrome(string s) { int len = s.length(); if (len <= 2) return true; return judge(s, 0, len - 1, 1); } private
转载 2018-10-01 17:26:00
58阅读
链接:http://codeforces.com/contest/680/problem/C题意:给你一个数字,让你查询不超过20次判断是素数还是合数//判断2 -100 以内是素数还是合数 由于最多查询20次 我们可以查询20次来判断是否是素数,小于100的合数一定有因子是2,3,5,7 有可能是素数因子就是本身,所以要增加4,9,25,49,来判断是否是合数 #includ
原创 2023-08-15 17:36:59
32阅读
6月28日,MCITP70680PASS。   MCITP。
原创 2010-06-28 23:34:03
330阅读
比较好想的浮点数二分吧,虽然提前知道标签是二分>_< const int N=1e5+10; double a[N]; int n,m; bool check(double mid) { int cnt=0; for(int i=0;i<n;i++) cnt+=int(a[i]/mid); retu
转载 2021-01-21 18:04:00
96阅读
680M架构的描述: 680M架构是一种新兴的系统架构设计,它融合了多种技术和工具,以支持大规模数据处理和快速响应需求的能力。这种架构在现代应用中被广泛应用,尤其是在云计算和大数据场景中。以下内容将详细探讨如何解决680M架构相关的技术问题。 --- ## 背景描述 在过去的几年中,680M架构的需求持续上升。从2018年到2023年,这一架构逐渐演变,主要受益于数据处理能力的增强和计算资
原创 8月前
21阅读
Given a non-empty string s, you may delete at most one character. Judge
原创 2022-08-03 17:16:26
45阅读
    摩托罗拉E680g E680g主要针对游戏的一款智能手机,在功能上还是比较全面的,价格也比较合适linux OS智能操作系统,宽大显示屏。但是,待机时间稍短,30万摄像头偏低。E680g因为支持手写,因此键盘方面只有金属质感的导航键和拨号/挂机键。体积是109&times;53.8&times;20.5mm,重133克,还是颇有智能手机的味道。2.5英寸的大屏
原创 2010-12-30 09:39:19
615阅读
题目有N根绳子,第i根绳子长度为Li,现在需要M根等长的绳子,你可以对N根绳子进行任意裁剪(不能拼接),请你帮忙计算出这M根绳子最长的长度是多少。输入格式:第一行包含2个正整数N、M,表示原始绳子的数量和需求绳子的数量。第二行包含N个整数,其中第 i 个整数Li表示第 i 根绳子的长度。输出格式:输出一个数字,表示裁剪后最长的长度,保留两位小数。数据范围1≤N,M≤100000,0<Li<109输入样例:3 43 5 4输出样例:2.50思路分析:将优化问题
原创 2021-08-24 09:51:26
465阅读
Given a non-empty string s, you may delete at most one character. Judge whether you can make it a palindrome. Example 1: Input: "aba" Output: True Exa
转载 2020-02-04 01:16:00
53阅读
2评论
Title给定一个非空字符串 s,最多删除一个字符。判断是否能成为回文字符串。示例 1:输入: “aba”输出: True示例 2:输入: “abca”输出: True解释: 你可以删除c字符。Solve贪心算法:考虑最朴素的方法:首先判断原串是否是回文串,如果是,就返回 true;如果不是,则枚举每一个位置作为被删除的位置,再判断剩下的字符串是否是回文串。这种做法的渐进时间复杂度是 O(n2) 的,会超出时间限制。换一种想法:首先考虑如果不允许删除字符,如何判断一个字符串是否是回文
原创 2022-03-09 17:26:05
91阅读
English GameTime Limit 1000msMemory Limit 65536Kdescription This English game is a simple English words connection game. The rules are as follows: there are N English words in a dictionary, and every word has its own weight v. There is a weight if the corresponding word is used. Now there is a ta...
转载 2013-04-29 21:11:00
80阅读
2评论
680. Valid Palindrome II*https://leetcode.com/problems/valid-palindrome-ii/题目描述Given a non-empty string s, you may delete at most one
原创 2022-05-30 10:40:17
69阅读
English Game Time Limit 1000ms Memory Limit 65536K description   This English game is a simple English words connection game.   The rules are as f
原创 2023-02-24 10:59:59
49阅读
Title给定一个非空字符串 s,最多删除一个字符。判断是否能成为回文字符串。示例 1:输入: “aba”输出: True示例 2:输入: “abca”输出: True解释: 你可以删除c字符。Solve贪心算法:考虑最朴素的方法:首先判断原串是否是回文串,如果是,就返回 true;如果不是,则枚举每一个位置作为被删除的位置,再判断剩下的字符串是否是回文串。这种做法的渐进时间复杂度是 O(n2) 的,会超出时间限制。换一种想法:首先考虑如果不允许删除字符,如何判断一个字符串是否是回文
原创 2021-08-10 10:06:39
207阅读
电信级MA5680T开局配置   enable  打开特权config  进入终端配置模式 Sysname   xxxx-xxxx   添加设备名称Terminal user name 添加用户Huawei  
原创 2016-02-23 16:23:55
1327阅读
Given a non-empty string s, you may delete at most one character. Judge whether you can make it a palindrome. Example 1: Input: "aba" Output: True Exa
转载 2020-05-01 05:52:00
63阅读
2评论
原题链接在这里:https://leetcode.com/problems/valid-palindrome-ii/description/ 题目: Given a non-empty string s, you may delete at most one character. Judge whe
转载 2017-09-20 13:59:00
129阅读
2评论
  • 1
  • 2
  • 3
  • 4
  • 5