/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ import java.util.Scanner; /** * * @author cteam037 */ public class Northwest { void run(){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); Town[] t = new Town[n]; for(int i = 0;i0)||(a==-b && b > 0)){ counterValid ++; } } } System.out.println(counterValid*2/sum); } public static void main(String[] args) { new Northwest().run(); } class Town{ int x; int y; Town(int x, int y){ this.x = x; this.y = y; } } }