Submission #3600405
Source Code Expand
lfl={} l1=0 l2=0 n=int(input().strip()) a=list(map(int, input().split())) for i in range(n): if a[i] in lfl: lfl[a[i]]+=1 else: lfl[a[i]]=1 if lfl[a[i]]>=2: if l1<a[i]: l2=l1 l1=a[i] lfl[a[i]]-=2 elif l2<a[i]: l2=a[i] lfl[a[i]]-=2 print(l1*l2)
Submission Info
Submission Time | |
---|---|
Task | C - Make a Rectangle |
User | nphys |
Language | Python (3.4.3) |
Score | 300 |
Code Size | 371 Byte |
Status | AC |
Exec Time | 109 ms |
Memory | 18316 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 | 90 ms | 14480 KB |
2.txt | AC | 62 ms | 8488 KB |
3.txt | AC | 84 ms | 18316 KB |
4.txt | AC | 97 ms | 14224 KB |
5.txt | AC | 64 ms | 8888 KB |
6.txt | AC | 106 ms | 14556 KB |
7.txt | AC | 109 ms | 14084 KB |
8.txt | AC | 56 ms | 7372 KB |
9.txt | AC | 51 ms | 10684 KB |
sample1.txt | AC | 17 ms | 3064 KB |
sample2.txt | AC | 17 ms | 3064 KB |
sample3.txt | AC | 18 ms | 3064 KB |