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
|
|||||||
2015-05-23 19:28:33 Bhuvnesh Jain
Finally got AC in C :D |
|||||||
2015-05-10 04:47:39 Subhashis Bhowmik
249 B in C, Still getting Solution too long... :3 |
|||||||
2014-12-13 18:00:43 bourne
While submitting solution, I have got "Internal Error" twice. Any idea? Re -> Error gone on resubmission with a different python version. re(vamsi): PyPy and Pyth 3.4 are available only in Cube cluster Last edit: 2015-02-04 16:09:17 |
|||||||
2014-10-11 16:07:35 Sba Baranwal
source limit 250B is it possible using C??? |
|||||||
2014-08-16 04:00:53 Bùi Hữu Giáp
Source limit: 250B ???? My source 3710B |
|||||||
2014-07-03 05:17:53 nitish kumar
Can anyone provide some strong test cases?My code seems fine. @tjandra please provide some test cases Last edit: 2014-07-03 05:21:48 |
|||||||
2014-02-11 08:15:56 Aradhya
@Mitch:: Thanks for mailing me about this.. Its done now :) |
|||||||
2013-11-11 14:54:45 Mitch Schwartz
@legrand: Thanks for pointing that out. It must have been changed recently, I don't know why. I've sent an email to the problem setter asking for the change to be reverted, as it is obviously unfair to all users. Last edit: 2013-11-09 20:16:32 |
|||||||
2013-11-11 14:54:45 legrand
Why is there a language restriction to C,C++ and C# in the submit menu and a lot of other languages in the scoreboard? All languages must be allowed. |
|||||||
2013-11-11 14:54:45 Mostafa 36a2
@Ouditchya Sinha :cook the algo;) @ওয়াসী (Wasi) : I'll be very glad too :) Thanks for the appreciation . Last edit: 2013-08-01 20:31:21 |