ABCDEF - ABCDEF
You are given a set S of integers between -30000 and 30000 (inclusive).
Find the total number of sextuples that satisfy:
Input
The first line contains integer N (1 ≤ N ≤ 100), the size of a set S.
Elements of S are given in the next N lines, one integer per line. Given numbers will be distinct.
Output
Output the total number of plausible sextuples.
Examples
Input: 1 1 Output: 1 |
Input: 2 2 3 Output: 4 |
Input: 2 -1 1 Output: 24 |
Input: 3 5 7 10 Output: 10 |
hide comments
Piyush Nirmal:
2014-08-24 16:29:36
Thanx@TYAGI..ur comment helped me gettin ac. |
|
Francis:
2014-05-01 20:00:01
hi everyone! I need your help.
|
|
TOTALED:
2014-03-21 01:59:34
what is the 11th test case getting wrong answer |
|
stranger:
2014-03-12 22:40:33
i have solved the problem but i still wondered how to optimize solution in order to pass it withtin 5 seconds. any ideas are welcome Last edit: 2014-03-12 22:40:59 |
|
TYAGI:
2014-02-12 23:48:00
during multiplication check for a[i] != 0....those who are getting wrong ans
|
|
TYAGI:
2014-02-12 23:20:06
if vipul will do it ... he will comment...easy problem |
|
Abhinav Gupta:
2014-01-24 10:06:42
AC in first attempt!!.That too with Java!! |
|
RAHUL VERMA:
2014-01-24 05:22:59
WA after 11 th test case,,please help
|
Added by: | Luka Kalinovcic |
Date: | 2009-07-13 |
Time limit: | 1s |
Source limit: | 50000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | All except: ERL JS-RHINO NODEJS PERL6 VB.NET |
Resource: | own problem |