Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <fstream>
- #include <cmath>
- #include <math.h>
- using namespace std;
- int n;
- int main(int argc, const char * argv[]) {
- cin >> n;
- int k = n - 2;
- int c = n * 3 - 2 + k;
- for (int i = 1 ; i <= 1 ; i++ ){
- for(int j = 1 ; j <= n ; j++ ){
- cout << j << " " ;
- }
- cout << endl ;
- for(int d = c; d <= c + k; d++){
- cout<< d << " ";
- }
- cout << n + 1;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment