Adityaxv's blog

By Adityaxv, 20 months ago, In English

Problem: Link, Submission: 280673288

Code
  • Vote: I like it
  • -1
  • Vote: I do not like it

| Write comment?
»
20 months ago, hide # |
 
Vote: I like it -10 Vote: I do not like it

I'm sorry but function definition is wrong: do try this:

public static void main(String args[])

»
20 months ago, hide # |
Rev. 2  
Vote: I like it 0 Vote: I do not like it

You have to split your vector g into two separate vectors, one for horizontal, and one vertical. Given input:

Spoiler

your code would say that (0, 0) is a "supercentral point" because there exist smaller and bigger xs and ys than 0, but really there is no "right neighbour" of that point