Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- int n;
- cin >> n;
- string stepen_na_10 = "1";
- string s = "";
- while(s.length() <= n) {
- s += stepen_na_10;
- stepen_na_10 += "0";
- }
- cout << s[n - 1] << " " << s[n] << endl;
- // 110100100010000
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment