diff options
Diffstat (limited to 'problems/rubyshousehunt/attachments/template.java')
-rw-r--r-- | problems/rubyshousehunt/attachments/template.java | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/problems/rubyshousehunt/attachments/template.java b/problems/rubyshousehunt/attachments/template.java new file mode 100644 index 0000000..ee06c60 --- /dev/null +++ b/problems/rubyshousehunt/attachments/template.java @@ -0,0 +1,23 @@ +import java.util.*; +import java.io.*; +import java.math.*; + +class Solution { + + public static void main(String args[]) { + Scanner in = new Scanner(System.in); + int income = in.nextInt(); + float mr = in.nextFloat(); + int savings = in.nextInt(); + int N = in.nextInt(); + for (int i = 0; i < N; i++) { + int price = in.nextInt(); + int expenses = in.nextInt(); + } + + // Write an answer using System.out.println() + // To debug: System.err.println("Debug messages..."); + + System.out.println("Yes, the house is affordable with 1 roommate(s) and $1 to spare."); + } +} |