追海逐风

导航

2010年9月25日 #

细节决定成败

摘要: such an easy problem that I didn't AC. WA 4 times.Problem:Judge if the (m, d) is a valid date, the year is 2010.1. 2010 is not a leap year, so February has only 28 days.2. Negative numbers must be considered.#include <iostream>using namespace std;const int DAYS[] = {0, 31, 28, 31, 30, 31, 阅读全文

posted @ 2010-09-25 13:21 追海逐风 阅读(209) 评论(0) 推荐(0) 编辑