Comments

I changed all datatypes to long long and it got accepted. Thanks!

I changed all datatypes to long long and it got accepted. Thanks!

I am getting WA on TC 12 in Problem C with the same logic backwards. https://codeforces.me/contest/1166/submission/54346570

I have the same idea but just backwards, But I am getting WA in TC 12. Please Help https://codeforces.me/contest/1166/submission/54346570

why do we have check sum/2 is less than 10^6?

What's wrong with my solution for problem B? https://codeforces.me/contest/1157/submission/53566680 I am getting wrong answer on test case 7

I am getting run time error in A

include <stdio.h>

include <string.h>

void main() { int n,l; scanf("%d",&n); char arr[105]; for(int i=0;i<n;i++) { scanf("%s",arr); l = strlen(arr); if(l>10) printf("%c%d%c\n",arr[0],l-2,arr[l-1]); else printf("%s\n",arr); } } can somebody explain