Submission #13287512


Source Code Expand

Copy
import math

n = int(input())

d = {}
for i in range(n):
    s = "".join(sorted(input()))
    if s in d:
        d[s] += 1
    else:
        d[s] = 0

_ans = 0
for k, v in d.items():
    if v == 0: continue
    _ans += math.factorial(v + 1) // 2

print(_ans)

Submission Info

Submission Time
Task C - Green Bin
User kazzzz1001
Language Python (3.4.3)
Score 0
Code Size 277 Byte
Status WA
Exec Time 2103 ms
Memory 17848 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 0 / 300
Status
AC × 3
AC × 6
WA × 6
TLE × 1
Set Name Test Cases
Sample a01, a02, a03
All a01, a02, a03, b04, b05, b06, b07, b08, b09, b10, b11, b12, b13
Case Name Status Exec Time Memory
a01 AC 17 ms 3060 KB
a02 AC 17 ms 3060 KB
a03 AC 17 ms 2940 KB
b04 AC 17 ms 2940 KB
b05 WA 338 ms 4952 KB
b06 WA 349 ms 4948 KB
b07 WA 370 ms 3060 KB
b08 AC 372 ms 17848 KB
b09 WA 373 ms 17848 KB
b10 AC 371 ms 17848 KB
b11 TLE 2103 ms 4036 KB
b12 WA 654 ms 10908 KB
b13 WA 21 ms 3188 KB