Can you help me see why B is wrong because I understand the wrong question?

Revision ru1, by beefrice, 2020-04-14 07:10:51

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]

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
ru1 Russian beefrice 2020-04-14 07:10:51 848 第一版 (опубликовано)