Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

bool *flag =new bool(m+1);这个开空间的怎么就和别的不一样????

Posted by baicaited at 2009-05-16 14:15:28 on Problem 2381
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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator