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 XueMao at 2003-05-27 13:35:10 on Problem 1144
In Reply To:我有可以过的程序 Posted by:hawk at 2003-05-27 13:28:59
    readln(n);
    if n=0 then break;
    fillchar(d,sizeof(d),0);
    repeat
      read(k);
      if k=0 then break;
      while not(eoln) do
      begin
        read(k1);
        d[k,k1]:=true;
        d[k1,k]:=true;
      end;
      readln;
    until false;
这样读数据会不会有问题???

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