Блог пользователя beefrice

Автор beefrice, история, 6 лет назад, По-русски

include<stdio.h>

int main() { int t, a, b, c; scanf("%d", &t); while(t--) { char d = 97; scanf("%d %d %d", &a, &b, &c); if(b == c) { for(int i = 0; i < a; i++) { printf("%c", d); d++; if(d == 123) d = 97; } printf("\n"); } else { for(int i = 0; i < a; i++) { printf("%c", d); if(c > 1) { d++,c--; } } printf("\n"); } } return 0; } [problem:B. Construct the String][problem:B. Construct the String]

  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится