aboutsummaryrefslogtreecommitdiff
path: root/problems/rubyshousehunt/attachments/template.java
blob: ee06c605bcb963f90f365766cda4e60bfe3f287c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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.");
    }
}