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

输入上这样可以吗?

Posted by Lenreyice at 2006-12-06 15:24:10 on Problem 1459
while(scanf("%d",&n) != EOF)
{
    scanf(" %d %d %d",&np,&nc,&m);
    for (i = 0; i < m; i++)
    {
        scanf(" (%d,%d)%d",&j,&k,&t);
        dmax[j][k] = t;
    }
    memset (node,0,n+n);
    for (i = 0; i < np; i++)
    {
        scanf(" (%d)%d",&j,&t);
        node[j][1] = 1;
        node[j][2] = t;
    }
    for (i = 0; i < nc; i++)
    {
        scanf(" (%d)%d",&j,&t);
        node[j][1] = 3;
        node[j][2] = t;
    }
……

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