You are not logged in. Please login at www.codechef.com to post your questions!

×

Getting NZEC in SPATH SPOJ.

This is MY SOLUTION for the problem SPATH, I don't know why I am getting NZEC, anyone please help me to figure out what is wrong with my code.

asked 12 Mar '18, 22:03

arpit728's gravatar image

1★arpit728
6831563
accept rate: 10%

@vijju123

can you take a look at this.

(15 Mar '18, 10:00) arpit7281★

You cannot create arrays of parameterized types.

Try replacing

`static List<Pair> adj[] = new List[10002];`

with

static List<List<Pair>> adj = new ArrayList<>();

and if you are using The Class List Please import all of its methods as well.

Check more here

link

answered 12 Mar '18, 23:40

rds_98's gravatar image

3★rds_98
456
accept rate: 8%

@rds_98

If this was the case them my code should not even work locally.

(13 Mar '18, 07:09) arpit7281★
toggle preview
Preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported
  • mathemetical formulas in Latex between $ symbol

Question tags:

×1,197
×989
×419
×165

question asked: 12 Mar '18, 22:03

question was seen: 201 times

last updated: 15 Mar '18, 10:00