Submission #2383661
Source Code Expand
from collections import Counter N = int(input()) A = Counter(list(map(int,input().split()))).most_common() fA = filter(lambda x: x[1] >= 2, A) sA = sorted(fA,reverse=True) if len(sA) < 2: print(0) else: print(sA[0][0]**2 if sA[0][1]>=4 else sA[0][0]*sA[1][0])
Submission Info
Submission Time | |
---|---|
Task | C - Make a Rectangle |
User | ykmc |
Language | Python (3.4.3) |
Score | 300 |
Code Size | 275 Byte |
Status | AC |
Exec Time | 103 ms |
Memory | 21412 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 300 / 300 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | sample1.txt, sample2.txt, sample3.txt |
All | sample1.txt, sample2.txt, sample3.txt, 1.txt, 2.txt, 3.txt, 4.txt, 5.txt, 6.txt, 7.txt, 8.txt, 9.txt, sample1.txt, sample2.txt, sample3.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
1.txt | AC | 102 ms | 16296 KB |
2.txt | AC | 36 ms | 8876 KB |
3.txt | AC | 98 ms | 21412 KB |
4.txt | AC | 103 ms | 14508 KB |
5.txt | AC | 36 ms | 8972 KB |
6.txt | AC | 51 ms | 14628 KB |
7.txt | AC | 52 ms | 14628 KB |
8.txt | AC | 33 ms | 7752 KB |
9.txt | AC | 56 ms | 12340 KB |
sample1.txt | AC | 20 ms | 3316 KB |
sample2.txt | AC | 20 ms | 3316 KB |
sample3.txt | AC | 20 ms | 3316 KB |