| ||||||||||
| 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:Manio at 2006-02-21 17:36:49 > main()
> {
> int total;
> int m,n;
> int i;
>
> scanf("%d",&total);
>
> for(i=1; i <= total ; i++)
> {
> scanf("%d%d",&m,&n);
> printf("Scenario #%d:\n",i);
> if( (m*n)%2 == 0)
> printf("%d.00\n",m*n);
> else
> printf("%d.41\n",m*n);
> printf("\n");
> }/*for*/
>
> }
>
> 68K 31MS
> 有的用GCC是15MS,怎么搞的?
请问这题什么原理?
Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator