Advertisement
yepp

Untitled

Nov 10th, 2013
329
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. #include <iostream>
  2. #include <cmath>
  3.  
  4. #define l(i,a,f) for(int i=a;i<f;++i)
  5. int main()
  6. {
  7. char m[97][71] = {' '};
  8. auto n =.36;
  9. int e;
  10. l(i,1,54) l(j, i<7?1:ceil(n*i-1.28),(i>47?40:ceil(n*i+21.86))) l(k,0,3) m[j-1+k*29][62-i]='#';
  11. l(i,-10,11) l(j,9-ceil(sqrt(112.89-i*i)-2),10) l(k,0,3) m[28+i+k*29][j] = m[10+i+k*29][70-j]='#';
  12. l(i,0,97){
  13. e=71;
  14. while(m[i][--e]<'#');
  15. l(j,0,e+1) std::cout << m[i][j];
  16. std::cout << '\n';
  17. }
  18. return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement