ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1177. Like Comparisons

Any hint about test #3 ?
Posted by sanok 30 Nov 2016 12:44
Hi,

My program pass all local tests but crashes after submit on test #3. Most probably I miss some boundary or weird pattern case. I use C++ and I took into account the fact that char's over 127 are converted to negative integers.

Do you have any hint?
Re: Any hint about test #3 ?
Posted by sanok 30 Nov 2016 12:59
UPD:
My local test file:

31
'' like '%'
'' like ''
'a' like 'a%'
'·' like '·'
'f' like '[z-a]'
'a' like '[a-]'
'·' like '[·a]'
'abcde' like 'a'
'abcde' like 'a%'
'abcde' like '%a'
'abcde' like 'b'
'abcde' like 'b%'
'abcde' like '%b'
'25%' like '_5[%]'
'_52' like '[_]5%'
'ab' like 'a[a-cdf]'
'ad' like 'a[a-cdf]'
'ab' like 'a[-acdf]'
'a-' like 'a[-acdf]'
'[]' like '[[]]'
'''''' like '_'''
'U' like '[^a-zA-Z0-9]'
'like' like 'like'
''' '' ' like ''' ''%'
'[' like '[[]'
'%' like '[%]'
'_' like '[_]'
']' like ']'
'^' like '^'
'like' like 'like'
''' '' ' like ''' ''%'