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:Re::)一次过,大家看看还能优化吗? Posted by:soga at 2008-08-15 16:34:09 #include<stdio.h> int main() { int k, i=0, m, n; scanf("%d", &k); while(k--) { scanf("%d %d", &m, &n); ++i; if(m*n%2!=0) printf("Scenario #%d:\n%d.41\n\n", i, m*n); else printf("Scenario #%d:\n%d.00\n\n", i, m*n); } return 0; } 用G++,16ms Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator