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 |
:)一次过,大家看看还能优化吗?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