leetcode 88 简简单单
class Solution {
public:void merge(vector<int>& nums1, int m, vector<int>& nums2, int n) {int j0;for(int im;i!mn;i){nums1[i]nums2[j];}sort(nums1.begin(),nums1.end());}
};END
安装配置 1. 安装libevent # tar zxf libevent-1.4.6-stable.tar.gz
# cd libevent-1.4.6-stable
# ./configure
# make && make install 2. 安装memcached # tar zxvf memcached-1.2.6.tar.gz
# cd memcached-1.2.6
# ./configure --prefix/usr/local/memcached-1.2.6…
1008. Elevator (20) 时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueThe highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at which floors the elevator wil…
1,文件与文件夹的读取(针对Windows )
这是程序员的基本功。 做这种操作首先要引入一个命名空间
using System.IO
I input 输入
O output 输出File.Create("C:\1.txt");
file是个静态类,里面有很多方法,多是…
1084. Broken Keyboard (20) 时间限制200 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueOn a broken keyboard, some of the keys are worn out. So when you type some sentences, the characters corresponding to those keys will not appear on scr…
1092. To Buy or Not to Buy (20) 时间限制100 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueEva would like to make a string of beads with her favorite colors so she went to a small shop to buy some beads. There were many colorful strings …