#include<iostream> #include<cmath> #include<string> #include<algorithm> using namespace std; int main() { pair<int, int> pr(1,2); int day; while (cin >> day) { pr.first = pow(2, day) - 1; pr.second = 100000 * day; cout << pr.first << ' ' << pr.second << endl; } } |
Double click to view unformatted code.