Editorial for Đảo ngược
Remember to use this editorial only when stuck, and not to copy-paste code from it. Please be respectful to the problem author and editorialist.
Submitting an official solution before solving the problem yourself is a bannable offence.
Submitting an official solution before solving the problem yourself is a bannable offence.
``` void solve() { char s1[100]; scanf("%s", s1); char newstr[100]; int id = 0; for(int i = strlen(s1) - 1; i >= 0;i--) { newstr[id] = s1[i]; id++; } // printf("YES"); newstr[id] = '\0'; printf("%s", newstr );
} ```
Comments