Re: 139 help
Posted: Sun Jul 06, 2014 4:30 pm
I finally got accepted!!!
it is neccessary to check subsciber
00 is invalid IDD code but can be valid STD code, so must check it.
it can be done in this wayname should be read ( including space(s) ) until character '$'
Code: Select all
gets(s);
sscanf(s, " %s %[^$]$%lf", code[n], name[n], &price[n]);
you need to check the subscriber IDD(4-10) STD(4-7)
Code: Select all
00 Los Angelos
I didn't consider this and got acceptedI just found the problem and got AC.![]()
For those got PE, please consider the case where the Local phone numbers with more than 10 digits.