| ||||||||||
| 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:再好好读一读题目In Reply To:再好好读一读题目 Posted by:sleepboy at 2004-10-05 20:55:32 while((p != e) || (p != i)) {
if(p < e) {
p += 23;
}
else if(e < i){
e += 28;
}
else {
i += 33;
}
}
}
改成
for( ; ; i += 33 )
{
if(i >d && i >= p && i >= e && i >= i && (i-p)%23 == 0 && (i-e)%28 == 0 )
{
days = i % 21252 ;
break;
}
}
就过了,还是有些不解啊
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator