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:发个清晰明了的ac

Posted by DINGDI at 2011-11-05 17:00:36 on Problem 1664
In Reply To:发个清晰明了的ac Posted by:l331258747 at 2011-08-06 09:53:08
program didi;
var
        a:array[1..10,1..10] of longint=((1,1,1,1,1,1,1,1,1,1),
                                         (1,2,2,2,2,2,2,2,2,2),
                                         (1,2,3,3,3,3,3,3,3,3),
                                         (1,3,4,5,5,5,5,5,5,5),
                                         (1,3,5,6,7,7,7,7,7,7),
                                         (1,4,7,9,10,11,11,11,11,11),
                                         (1,4,8,11,13,14,15,15,15,15),
                                         (1,5,10,15,18,20,21,22,22,22),
                                         (1,5,12,18,23,26,28,29,30,30),
                                         (1,6,14,23,30,35,38,40,41,42));
        n,m,t:longint;
        i:longint;
begin
        readln(t);
        for i:=1 to t do
          begin
            read(m,n);
            writeln(a[m,n]);
          end;
end.

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