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 454959 at 2014-07-17 11:36:18 on Problem 1258
#include <iostream>
#include <stdio.h>
#include <string.h>

using namespace std;

int map[105][105];
int dis[105];
bool vis[105];

int prim( int n)
{
 }

int main()
{
    int n=0;
    int w=0;
   while(scanf("%d",&n)!=EOF)、//为虾米写成(while(scanf("%d",&n)!=EOF,n)就TLE
    {
        for( int i = 0; i<n; i++)
         for( int j = 0; j<n; j++)
        {
            scanf("%d",&w);
            map[i][j] = w;
        }
        printf("%d\n",prim(n));
    }
    return 0;
}

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