| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
bool *flag =new bool(m+1);这个开空间的怎么就和别的不一样????In Reply To:这一题到底是想干嘛的,简单的算法没过,反而暴力过了 Posted by:hutu_2000 at 2009-03-14 13:35:35 > 过了:
> #include <iostream>
> using namespace std;
> int main()
> {
> bool *flag;
bool *flag =new bool(m+1);这个开空间的怎么就和别的不一样????我这个就re
希望大牛解释。
> long R0, R, Rn, i, j, a, c, m, max, max_num;
>
> scanf("%ld%ld%ld%ld", &a, &c, &m, &R0);
> flag = new bool[m+1];
> memset(flag, false, sizeof(bool) * (m+1));
Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator