| ||||||||||
| 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 | |||||||||
Re:为什么是WA? 代码附上!In Reply To:Re:为什么是WA? 代码附上! Posted by:crg511 at 2008-08-31 18:20:29 这题好像是这样的,下面的我做的一段验证代码。
typedef long long ll;
void print()
{
ll i,j;
for(i=1;i<6;i++)
{
for(j=49996;j<50001;j++)
{
cout<<i*i+100000*i+j*j-100000*j+i*j<<" ";
}
cout<<endl;
}
}
得到的数据里面有相同的(最上面一行的)
-2499849987 -2499849993 -2499849997 (-2499849999 -2499849999)
-2499699988 -2499699993 -2499699996 -2499699997 -2499699996
-2499549987 -2499549991 -2499549993 -2499549993 -2499549991
-2499399984 -2499399987 -2499399988 -2499399987 -2499399984
-2499249979 -2499249981 -2499249981 -2499249979 -2499249975
Press any key to continue . . .
我和你的做法一样,不知道用什么办法解决!
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator