Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

Re::)一次过,大家看看还能优化吗?

Posted by soga at 2008-08-15 16:35:38 on Problem 1450 and last updated at 2008-08-15 16:35:54
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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator