Submit | All submissions | Best solutions | Back to list |
JH1 - Size Contest!!!Reloaded!! |
After seeing the popularity of the question size contest, Aradhya thought of adding its new version.
The problem statement is really simple. You are given 'n' and and then next n lines contain 'n' numbers.You have to calculate p and q.
'p' is the sum of numbers at even places ,but we add them only if they are positive.
'q' is the sum of numbers at odd places,but we add them only when they are negative.
Then you need to find the absolute value of p and q.
If p is greater than q or equal to q,then print "Some Mirrors Lie!". ( without quotes )
If q is greater than p, then print "Every Girl Lies!" ( without quotes )
Input
First line contains a integer t=number of test cases.
Then each test case contains a number n. and next line conatin 'n' numbers separated by a space.
1<=n<=100
and the numbers are less than 10^18
Output
A single line for each test case as described above.
Example
Input: 1
5
-1 2 -3 5 -4
Output:
Every Girl Lies!
Mind you--->The less your fingers work .The more you GAIN!!!
Note -- > Source Limit is made a little strict !!.. So chill out !!
Added by: | Aradhya |
Date: | 2012-06-29 |
Time limit: | 1s |
Source limit: | 250B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | All except: ASM64 |
Resource: | Own Problem |
hide comments
|
|||||||
2013-11-11 14:54:45 ওয়াসী (Wasi)
Thanks Mostafa :) I actually started learning awk after seeing one of your comment on this problem(5 days of learning awk...) So, i'm a noob of awk I've searched google and read some tutorial but I'll be very glad if you send some useful link on this language in my mail. Last edit: 2013-08-02 06:29:29 |
|||||||
2013-11-11 14:54:45 Ouditchya Sinha
@Mostafa 36a2 (Al3ayesh) : 107B for now! Will keep trying. :) |
|||||||
2013-11-11 14:54:45 Mostafa 36a2
@Ouditchya Sinha Thank you :) I hope you do better than me :) |
|||||||
2013-11-11 14:54:45 Ouditchya Sinha
@Mostafa 36a2 (Al3ayesh) : Congratulations!!! :) |
|||||||
2013-11-11 14:54:45 Mostafa 36a2
YEAH :D THANKS MY GOD FIRST WITH MITCH FOR THE FIRST TIME EVER :D :D :D |
|||||||
2013-11-11 14:54:45 Mostafa 36a2
5 days learning AWK and then! 2nd in RANK list x_x Thanks GOD |
|||||||
2013-11-11 14:54:45 Syntax Terror
Uff!! after 27 sttempts .. AC finally! :) |
|||||||
2013-11-11 14:54:45 Bhagwat
God...finally AC..:) i love this problem |
|||||||
2013-11-11 14:54:45 Tushar Makkar (Retired)
Why am I getting WA in this question ? As I am using python so there should be no problem in storing large values as such. @Si!ence Please see to it Submission id 8818066 |
|||||||
2013-11-11 14:54:45 Mostafa 36a2
For Every Body Get WA... careful that you may have 10^18 50 times which more than 2^64 GET IT!!!!! (thanks for omar alkattan) Last edit: 2012-09-21 20:08:09 |