Here are two simple questions. Problem A #include include using namespace std; class vehicle { public: vehicle(const string& name); virt...
分类:
其他好文 时间:
2014-08-08 17:48:16
阅读次数:
264
Weekend counterSofia has given you a schedule and two dates and told you she needs help planning her weekends. She has asked you to count each day of ...
分类:
其他好文 时间:
2014-08-08 17:36:46
阅读次数:
167
Median of Two Sorted ArraysThere are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run...
分类:
其他好文 时间:
2014-08-08 17:33:46
阅读次数:
232
Problem Description
I’ve bought an orchard and decide to plant some apple trees on it. The orchard seems like an N * M two-dimensional map. In each grid, I can either plant an apple tree to get one...
分类:
移动开发 时间:
2014-08-08 16:13:06
阅读次数:
281
Problem Description:
The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other.
Given an integer n, return all distinct solution...
分类:
其他好文 时间:
2014-08-08 12:46:55
阅读次数:
180
Perform this exercise two rounds.These examples of simple exercises that can be performed in a large bag. Always remember to keep your hands on traini...
分类:
其他好文 时间:
2014-08-08 12:06:45
阅读次数:
298
第二讲perl 加载c/c++的库先通过h2xs 创建一个新的工程h2xs -A -n two_test进入目录cd two_test创建一个mylib文件夹,存放静态库mkdir mylibc程序头文件chen.h#includevoid chen(char *);c程序代码chen.c#incl...
分类:
编程语言 时间:
2014-08-07 22:42:35
阅读次数:
484
Large Division
Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%lld & %llu
Submit
Status
Practice
LightOJ 1214
Description
Given two integers, a and b, you should check whe...
分类:
其他好文 时间:
2014-08-07 19:13:30
阅读次数:
244
只需要判断一个回合就可以了,枚举判断可以一次出完所有牌或者大过对面的牌的可能,注意的是4张相同的牌带两张牌的话是可以被炸弹炸的。
#include
#include
#include
#include
#include
#include
#include
#include
using namespace std;
struct node
{
int k,mk;
int two...
分类:
其他好文 时间:
2014-08-07 19:04:10
阅读次数:
258
Problem Description
I’ve bought an orchard and decide to plant some apple trees on it. The orchard seems like an N * M two-dimensional map. In each grid, I can either plant an apple tree to get one a...
分类:
移动开发 时间:
2014-08-07 18:59:10
阅读次数:
293