914. 翻转游戏 中文English You are playing the following Flip Game with your friend: Given a string that contains only two characters: + and -, you can flip ...
分类:
其他好文 时间:
2020-03-26 01:06:15
阅读次数:
79
A. Sum of Odd Integers 首先可以算出从1开始到第k个奇数之和。如果和大于n,则不可能存在k个奇数加和等于n,否则用n减去前k个奇数的和,这个差值若是偶数,直接加到最大的奇数上,就可以满足题意要求,否则输出no。 1 #include<bits/stdc++.h> 2 using ...
分类:
其他好文 时间:
2020-03-26 01:02:17
阅读次数:
72
[leetcode]1379. Find a Corresponding Node of a Binary Tree in a Clone of That Tree 链接 "leetcode" 描述 Given two binary trees original and cloned and giv ...
分类:
其他好文 时间:
2020-03-25 19:39:53
阅读次数:
70
Example input Copy 6 3 1 4 2 10 3 10 2 16 4 16 5 output Copy YES YES NO YES YES NO Note In the first test case, you can represent 3 as 3. In the secon ...
分类:
其他好文 时间:
2020-03-25 19:15:49
阅读次数:
92
Calculate A + B. InputEach line will contain two integers A and B. Process to end of file. OutputFor each case, output A + B in one line. Sample Input ...
分类:
其他好文 时间:
2020-03-25 16:09:38
阅读次数:
100
Given a 2D grid, each cell is either a wall 2, a zombie 1 or people 0 (the number zero, one, two).Zombies can turn the nearest people(up/down/left/rig ...
分类:
其他好文 时间:
2020-03-25 10:53:03
阅读次数:
76
A common pastime for poker players at a poker table is to shuffle stacks of chips. Shuffling chips is performed by starting with two stacks of poker c ...
分类:
其他好文 时间:
2020-03-25 01:13:56
阅读次数:
53
题目:传送门 题意: 给你一个长度为 N 的只由123 构成的字符串 a ,定义 Xi,j 满足: 思路: 推荐博客:博one 博two 第一个观察,最终的答案只可能是 0、1、2,然后,从 N = 2 起,Xi,j 就不存在 3 了,都是 0、1、2,那我们直接在输入的时候,就将 123 转换为 ...
分类:
其他好文 时间:
2020-03-23 16:48:55
阅读次数:
92
输入标签名+tab > 子标签 * 多少个标签 $ 标签的名称序号 { } 标签的内容 + 并列的标签 [ ] 属性 HTML script + 并列的标签:div#one+div#two 点击tab 引入 表格 链接 a[href=#] 再tab <a href="#"></a> a:link 再 ...
分类:
Web程序 时间:
2020-03-22 23:52:01
阅读次数:
116
首先在前句已经总领,将所要compare的对象先说出来了,two kind of water,然后还说了原因,是Pore size。长难句中反复出现的对象是two kind of water, two kind of pore size 和surface tension,题干考查实际上是这三者的逻辑 ...
分类:
其他好文 时间:
2020-03-22 23:50:53
阅读次数:
86