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 |
最普通的模拟0ms~~好像太多人想的有点复杂了~In Reply To:Re:OMS的是怎么过的呀? Posted by:conanhjj at 2008-10-05 13:06:12 for(int i=1;i<=n;i++) { for(int j=i;j<=n;j+=i) { if(a[j]==0)a[j]=1; else a[j]=0; } } Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator