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, 22:03

arpit728's gravatar image

2★arpit728
6831149
accept rate: 10%

@vijju123

can you take a look at this.

(15 Mar, 10:00) arpit7282★

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, 23:40

rds_98's gravatar image

3★rds_98
305
accept rate: 9%

@rds_98

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

(13 Mar, 07:09) arpit7282★
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,094
×864
×381
×144

question asked: 12 Mar, 22:03

question was seen: 108 times

last updated: 15 Mar, 10:00