FAST_BF2 - The BrainFast Processing! Challenge version
Warning: Only Brainf**k language is allowed.
After I solve this problem in 0.00s using BF , I have an idea to set new BF problems, now here I come
The task is simple, given a <string>(1≤"length of string"≤10) just check if the string is palindrome or not.
The string contains character in range ASCII(97)≤char≤ASCII(122) (lower case alphabet)
Input
The first line, there is an integer T(1≤T≤100) denoting number of test cases then you should process only next T lines, each line is a <string> terminated by new line character ('\n') ASCII(10)
Output
For each test case:
if <string> is palindrome, output: YES
else, output: NO
Example
Input:
2
aba
ab
Output:
YES
NO
Score
Score is length of your source.
If you TLE here, you may try this problem first. If you got AC in 0.00s there you shoud got AC in 0.00s here too
hide comments
Mitch Schwartz:
2013-01-17 17:03:47
@Mostafa: It sounds like you are trying to get AC with an incorrect solution; why would asdsda or 123123 pose any problem?
|
|
Mostafa 36a2:
2013-01-17 17:03:47
why i get WA ? ;)
|
|
Mitch Schwartz:
2013-01-17 17:03:47
Thanks! TLE/AC ratio seems reasonable now, at least for my current setup. :) Last edit: 2013-01-11 14:05:27 |
|
(Tjandra Satria Gunawan)(曾毅昆):
2013-01-17 17:03:47
@Mitch Schwartz: Sorry about junk test data, Accidently I put two '\n' after last test case.. Also I forgot about server instability, now I've updated the time limit and fix test data and rejudge all submissions.. Sorry for inconvenience..
|
|
Aditya Pande:
2013-01-17 17:03:47
apparently the time limit is very strict if mitch is having a hard time avoiding TLE... Last edit: 2013-01-11 08:18:49 |
|
Mitch Schwartz:
2013-01-17 17:03:47
Does input contain junk data after the last case?
|
|
(Tjandra Satria Gunawan)(曾毅昆):
2013-01-17 17:03:47
@Aditya Pande: don't worry, it's possible to got AC here with this constraints: (length of string less than 10 and number of test cases less than 100) I've tested it with my own BF code. good luck ;-) |
|
Aditya Pande:
2013-01-17 17:03:47
the time limit makes me nervous :( |
Added by: | Tjandra Satria Gunawan |
Date: | 2013-01-10 |
Time limit: | 0.100s |
Source limit: | 1500B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | BF |
Resource: | The Mirror of Galadriel Problem plus my own idea ;-) |