Search found 1 match

by mchowdhu
Thu May 07, 2015 12:55 pm
Forum: Volume 1 (100-199)
Topic: 119 - Greedy Gift Givers
Replies: 145
Views: 26074

119-Greedy Gift Givers

Hi I am getting wrong answer from the following code and not able to trace error.Could you help me ? import java.util.Scanner; import java.util.HashMap; class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); while (true) { int n = 0; try { n = sc.nextInt(); } catch...

Go to advanced search