Advertisement
a53

Mate

a53
Sep 13th, 2022
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. ifstream fin("mate.in");
  4. ofstream fout("mate.out");
  5.  
  6. int main()
  7. {
  8. int n;
  9. unsigned long long t1=1,t0=0,t;
  10. fin>>n;
  11. fout<<t1<<" ";
  12. for(int i=2;i<=n;i++)
  13. {
  14. t=34*t1-t0+2;
  15. t0=t1;
  16. t1=t;
  17. fout<<t<<" ";
  18. }
  19. return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement