Advertisement
Guest User

Untitled

a guest
Oct 20th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. #include <stdio.h>
  3. #include <iostream>
  4. #include <string>
  5.  
  6. using namespace std;
  7.  
  8. int main()
  9. {
  10. freopen ("Input.txt", "r", stdin);
  11. freopen ("Output.txt", "w", stdout);
  12. int n,a,b,c;
  13. cin>>n>>a>>b>>c;
  14. int k=0;
  15. for(int i=0;i<a-1;i+=2){
  16. cout<<"AB";
  17. k++;
  18. }
  19. if(a%2==1){
  20. cout<<"A";
  21. k++;
  22. }
  23. for(int i=0;i<b-1;i+=2){
  24. cout<<"cd";
  25. k++;
  26. }
  27. if(a%2==1){
  28. cout<<"c";
  29. k++;
  30. }
  31. for(int i=0;i<c-1;i+=2){
  32. cout<<"10";
  33. k++;
  34. }
  35. if(a%2==1){
  36. cout<<"1";
  37. k++;
  38. }
  39. return 0;
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement