blob: 0f9ddf795b5afffcaab1f06825d8b76e7da7b0ce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
using namespace std;
int main()
{
int income;
float mr;
int savings;
cin >> income >> mr >> savings; cin.ignore();
int n;
cin >> n; cin.ignore();
for (int i = 0; i < n; i++) {
int price;
int expenses;
cin >> price >> expenses; cin.ignore();
}
// Write an answer using cout. DON'T FORGET THE "<< endl"
// To debug: cerr << "Debug messages..." << endl;
cout << "Yes, the house is affordable with 1 roommate(s) and $1 to spare." << endl;
}
|