fork download
  1. #include <iostream>
  2. using namespace std;
  3. int main() {
  4. int a, b;
  5. cin >> a >> b;
  6. for(int i = 1; i <= b; i++) {
  7. if(i % 2) cout << "B";
  8. else cout << "C";
  9. }
  10. }
Success #stdin #stdout 0s 3348KB
stdin
3 5
stdout
BCBCB