diff options
Diffstat (limited to 'problems/whatsthatprogression/attachments/template.cpp')
-rw-r--r-- | problems/whatsthatprogression/attachments/template.cpp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/problems/whatsthatprogression/attachments/template.cpp b/problems/whatsthatprogression/attachments/template.cpp new file mode 100644 index 0000000..0f9ddf7 --- /dev/null +++ b/problems/whatsthatprogression/attachments/template.cpp @@ -0,0 +1,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; +} |