FlamesProblem code: EMA09 |
We all have played a game called FLAMES during our childhood. In this we take input as two names, eliminate the similar alphabets in both the words and count the remaining number of alphabets and calculate the corresponding relationship according to FLAMES(Friend, Love, Affection, Marriage, Enemy or Sister)
Input
Input description... Name of you and your partner
Output
Output description... Count the number of remaining dissimilar alphabets and according to flame find the corresponding relationship F- Friend L- Love A-Affection M- Marriage E - Enemy S- Sister
Example
Input: RAHUL PREETI Output: E- ENEMY
| Author: | rajneeshrana |
| Date Added: | 31-03-2010 |
| Time Limit: | 1 sec |
| Source Limit: | 50000 Bytes |
| Languages: | C, C99 strict, CPP 4.3.2, CS2, JAR, JAVA, NICE, PAS fpc, PAS gpc |
Comments

Fetching successful submissions

if similar alphabet has
if similar alphabet has different no. of occurences in both the string, then sud we remove all the occurence or the no. of time it matches in both string.
e.g aanand & arushi
now sud we remove all a from both or one from each.
is the o/p correct???
is the o/p correct???
Please correct the sample
Please correct the sample output format.
F- Friend L- Love A-Affection M- Marriage E - Enemy S- Sister
all outputs have different number of spaces before and after (-)
somebody please tell what is
somebody please tell what is the correct output format???
@vikas: i see that your
@vikas: i see that your solution to flames just got accepted after several WAs. Can u plz tell whether it is a corner case that we are overlooking or something wrong in output format?? I am not asking for any direct answers.
April Fool's day being
April Fool's day being extended here on April 2... I submitted an empty function and it was accepted as a solution. I am out of here guys.
THAT'S TRUE!!!! .... IT
THAT'S TRUE!!!! .... IT ACCEPTED AN EMPTY FUNCTION. AND THATS NOT JUST WITH THIS PROBLEM ALONE. WHAT IS HAPPENING???!!!
even i submitted an empty
even i submitted an empty program which outputs nothing..
but still got it corrected and i got graded...
codechef lost n forgot the recipe i suppose...!!!!!
I DOUBT IF THIS IS A CONTEST
I DOUBT IF THIS IS A CONTEST AT ALL!!!
HAVE BEEN READING SIMILAR THINGS ABOUT THE "APRIL ALGO CHALLENGE".
I HOPE CODECHEF ADMINS SEE TO IT AND RECTIFY.
ha ha... utter nonsense... i
ha ha...
utter nonsense...
i won the contest in 2 min by submitting an empty program with one statement (return 0) in my program..
plz guys stop wasting ur brain cells on this nonsense..
seriously whats the need to
seriously whats the need to conduct the contest!. An empty program which o/p's nothin is getting accepted. !!!!!! Rectify this bug admins.
This is awful!!
This is awful!!
What is happening here. Even
What is happening here. Even I submitted the empty file and got all as correct answer.
What is the output format. In
What is the output format. In output it is given F- Friend L- Love A-Affection M- Marriage E - Enemy S- Sister.
But in example it is given E- ENEMY.
In example, everything is in capital letters and there is different number of spaces in between.
Please specify what to do.
Is any registration needed
Is any registration needed for this contest?
@everyone i forgot this game
@everyone
i forgot this game can anyone elaborate how to calculate after eliminating similar alphabets???
how was ENEMY the answer o/p in the question above???
how did E came??
@admin please give the exact
@admin
please give the exact input and output desired...
the output should b this
F- Friend L- Love A-Affection M- Marriage E - Enemy S- Sister
or this
Sample output of my PC is as
Sample output of my PC is as follows:
RAHUL
PREETI
E- ENEMY
Is this wrong output???
Please justify....
I am new to codechef. What
I am new to codechef.
What happens after successful submission???
Does any1 gets prize in this contest?
and if we want to know what went wrong with our answer which run successfully in our system bt got "Wrong answer" by codechef.
How can we review what went wrong so that we can take care frm next time?
Please admin tell or the users who got right answer please give hints.
I am askin this as this contest is over...