Submission #13287278


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
    elif v == 1:
        _ans += 1
    else:
        _ans += v + 1

print(_ans)

Submission Info

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

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 0 / 300
Status
AC × 3
AC × 6
WA × 7
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 3060 KB
b04 AC 17 ms 3060 KB
b05 WA 339 ms 4908 KB
b06 WA 356 ms 4956 KB
b07 WA 355 ms 3060 KB
b08 AC 374 ms 17844 KB
b09 WA 361 ms 17848 KB
b10 AC 351 ms 17844 KB
b11 WA 350 ms 3060 KB
b12 WA 367 ms 10532 KB
b13 WA 20 ms 3188 KB