ICode9

精准搜索请尝试: 精确搜索
  • 8.6 CF补题2019-08-06 17:03:10

    两道题 1.edu 25 D. Suitable Replacement 题意:给定字符串s,t,s中‘?’字符可以以任何字符替换,问如何替换 可使 替换后的s重新排序与t的匹配次数最多(len_t<len_s) 分析: 1.比赛时又用贪心模拟结果把自己写死了啊啊啊 2.一些贪心的题可以用二分做,而且如果二分的check()简单的话比贪心好写 3

  • QA’s work way in TDD2019-07-21 20:42:14

    原文链接:http://www.cnblogs.com/RelaxTintin/archive/2009/10/23/1588863.html Recently I am studying TDD. When had some discussion with other people, I has been asked about some questions about what QA could do in a team which approach T

  • Elements of "How to win friends and influence people"2019-07-21 15:05:40

    原文链接:http://www.cnblogs.com/JVKing/articles/2558351.html "How to win friends and influence people" is a book by Dale Carnegie. I have almost finished reading it, and here I list some elements of this book:Golden key: a de

  • lesson5_No wrong numbers2019-07-20 13:00:38

    【课文】 Mr james scott has a garage in Silbury, and now he has just bought another garage in Pinhurst, Pinhurst is only five miles from Silbury, but Mr scott can not get a phone for his new gargae.  so he just has bought twelve pigeons. Yesterday. a pigeons

  • 【HDU - 2612】Find a way2019-07-05 21:51:39

    -->Find a way 直接上Chinese  Descriptions: hsj和lsh最近迷上了pokemon go的游戏。在双十一大物期中考试来临之前,他们想抓一只稀有土拨鼠来攒攒人品(因为土拨鼠的刷新地点最近来到了哈工程)但是由于土拨鼠过于强大,他的雷霆半月斩以及惊天浪涛沙都可以轻松的将他们两击败,但是他们两

  • Find a way2019-07-02 21:02:50

    Pass a year learning in Hangzhou, yifenfei arrival hometown Ningbo at finally. Leave Ningbo one year, yifenfei have many people to meet. Especially a good friend Merceki. Yifenfei’s home is at the countryside, but Merceki’s home is in the center of city.

  • Run2019-07-01 10:00:22

    When I was a ten years boy 当我还是一个十岁的男孩daddy told me everyday每一天爸爸都会告诉我When did you feel to be changed当你什么时候感觉需要改变Take your time and try it again别着急去慢慢尝试 Now I stand here on crossroads现在我站在十字路口It Maybe reason fo

  • 【反转(开关问题)】Face The Right Way2019-06-26 19:51:05

      Step1 Problem: [原题]N头牛排成了一列。每头牛头向前或向后。为了让所有的牛都面向前方,农夫约翰买了一台自动转向的机器。这个机器在购买时就必须设定一个数值K,机器每操作一次恰好使K头连续的牛转向。求让所有牛都能面向前方需要的最少操作次数M和对应的最小的K. Step2

  • QA’s work way in TDD2019-06-25 13:53:58

    Recently I am studying TDD. When had some discussion with other people, I has been asked about some questions about what QA could do in a team which approach TDD, especially for those manual QA members. Initially I didn’t consider this was a problem. Afte

  • QA’s work way in TDD2019-06-22 10:48:39

    Recently I am studying TDD. When had some discussion with other people, I has been asked about some questions about what QA could do in a team which approach TDD, especially for those manual QA members. Initially I didn’t consider this was a problem. Afte

  • T42019-06-07 11:01:05

    题目描述 约翰的奶牛们从小娇生惯养,她们无法容忍牛棚里的任何脏东西. 约翰发现,如果要使这群有洁癖的奶牛满意,他不得不雇佣她们中的一些来清扫牛棚, 约翰的奶牛中有N(1≤N≤10000)头愿意通过清扫牛棚来挣一些零花钱. 由于在某个时段中奶牛们会在牛棚里随时随地地乱扔垃圾,自然地,她

  • P3810 【模板】三维偏序(陌上花开)2019-06-07 11:00:42

    1 #include<iostream> 2 #include<cstdio> 3 #include<algorithm> 4 using namespace std; 5 const int maxn=1e7+10; 6 int ans[maxn]; 7 int f[maxn]; 8 int n,k; 9 int c[maxn]; 10 int same[maxn]; 11 struct node 12 { 13 int a,b,c; 1

  • CF2B The least round way(贪心+动规)2019-06-03 11:01:41

    题目 CF2B The least round way 做法 后面\(0\)的个数,\(2\)和\(5\)是\(10\)分解质因数 则把方格中的每个数分解成\(2\)和\(5\),对\(2\)和\(5\)求两边动规,得出最小值\(ans=min(num_2,num_5)\) 我们贪心地选择最小值所对应的\(2\)或\(5\),然后从\((n,n)\)按动规路径返回 Code #include<

  • way.js2019-06-01 18:42:24

    1   <body> 2 <form way-data="formData" way-persistent><!-- form标签里面有way-persistent时,页面刷新时数据不会消除 --> 3 <input type="text" name="name" placeholder="name"><!-- 必须要写name,

  • Postgres Database management operations2019-05-31 10:01:03

      1. Scanning tables             It is a leanear operation which can fetch data block containing row and apply filter or condition.   Scanning small table is efficient. Scanning large tables can be efficient if few queries. Scanning large tables repe

  • React中引用CSS样式的方法2019-05-06 10:37:43

    相对于html中引用css的三种方法,react中也有三种方法,一一相对: 1. 行内样式:直接在组件内部定义 <div style={{width:'20px',height:'30px'}}> First Way!</div> 2. 声明样式:在render函数中先声明,再引用 render() { let mystyle = { width:'20px', heigh

  • Python之禅2019-04-15 23:40:38

                import this   The Zen of Python, by Tim Peters Beautiful is better than ugly. Explicit is better than implicit. Simple is better than complex. Complex is better than complicated. Flat is better than nested. Sparse is better than dense.

  • HDU2612-Find a way【双重BFS】2019-04-01 22:54:27

    hsj和lsh最近迷上了pokemon go的游戏。在双十一大物期中考试来临之前,他们想抓一只稀有土拨鼠来攒攒人品(因为土拨鼠的刷新地点最近来到了哈工程) 但是由于土拨鼠过于强大,他的雷霆半月斩以及惊天浪涛沙都可以轻松的将他们两击败,但是他们两的合击必杀技流影电光闪以及天羽屠鼠舞可

  • $CF2B \The \ least\ round\ way$2019-03-31 13:39:43

    problem 题目大意:求一条路径\(from(1,1)\ to (n,n)\) 求0的个数 无非就是拆解 有几个10乘起来 $10 =  2  *  5 $ 那么单独存在$ 2\or\5$的时候肯定不能构成。 所以就是求一条路径下的 最少的2 和 最少的5 也就需要预处理出来 方格的每个数字 存在几个2 几个5 。 用两个数

  • codeforces586B2019-03-29 22:44:44

    Laurenty and Shop  CodeForces - 586B  A little boy Laurenty has been playing his favourite game Nota for quite a while and is now very hungry. The boy wants to make sausage and cheese sandwiches, but first, he needs to buy a sausage and some cheese. The t

  • Python 注释,类,属性,方法,继承2019-03-24 20:37:34

    # coding=utf-8 支持中文 """ 多行注释 声明鸟类 """ class Bird(object): have_feather = True way_of_reproduction = 'egg' # 类内功能模块空一行 @staticmethod def move(x, y): position = [0, 0] position[

  • 每天需要多思考,大脑才不会荒废(一)2019-03-18 21:42:58

       In our society,we often dont't take on big things because we're so afraid of making mistakes that we ignore all the things wrong today if we do nothing.  在我们的社会中,我们经常不去做大事,因为我们害怕犯错,如果我们什么都不去做,我们就忽视了今天所有的错误。  

  • 01迷宫题解(bfs,联通块)2019-03-17 21:40:35

    题目https://www.luogu.org/problemnew/show/P1141 这个题解主要针对我个人出现的一些问题和注意的地方。 解题思路 首先说一下联通块 联通块这个比较抽象,举个例子就是假设一条鱼在一个池塘里游泳,那么在时间不限的情况下,小鱼会游过池塘的所有位置,而这个与小鱼的出发点是无关的。 所

  • 专辑一:爱之初体验(中级)2019-03-02 10:40:37

    1、Try and Try Hard (要玩儿 就玩真哒~)   If you're going to try, go all the way. Otherwise, don't even start.    If you're going to try, go all the way. This could mean losing girlfriends, wives(妻子), relatives(亲戚), jobs and maybe your mind. Go all

  • L2592019-03-01 08:51:32

    Few things can feel as crushing as being rejected by someone who you're either dating or romantically interested in. No matter what stage of a relationship you're at, no one enjoys finding out that the person they love doesn't feel the same

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有