Submission #562065

#TimeUsernameProblemLanguageResultExecution timeMemory
562065jh05013Lonely mdic (kriii1_L)Java
0 / 1
2074 ms24484 KiB
import java.awt.geom.*; import java.util.*; import java.io.*; public class L { public static void main(String[] args){ Scanner sc = new Scanner(System.in); StringBuilder sb = new StringBuilder(); int n = sc.nextInt(); List<Area> circs = new Vector(); for(int i = 0; i < n; i++){ double x = sc.nextDouble(); double y = sc.nextDouble(); double r = sc.nextDouble(); Ellipse2D.Double c = new Ellipse2D.Double(x-r, y-r, 2*r, 2*r); Area car = new Area(c); circs.add(car); } int ans = 0; for(int i = 0; i < n; i++){ Area a = (Area) circs.get(i).clone(); for(int j = 0; j < n; j++) if(i != j) a.subtract(circs.get(j)); if(a.isEmpty()) ans++; } sb.append(ans); System.out.println(sb); } }

Compilation message (stderr)

Note: L.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
#Verdict Execution timeMemoryGrader output
Fetching results...