#!/usr/bin/env/python2.7
#import sys
#raw_input = sys.stdin.readline
senhas = []
resposta = 0
n = int(raw_input())
for i in xrange(n):
davez = raw_input()
for palavra in senhas:
if palavra in davez:
resposta += 1
#print "%s %s" % (palavra,davez)
if davez in palavra:
resposta += 1
#print "%s %s" % (davez,palavra)
senhas.append(davez)
print resposta
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Runtime error |
2 ms |
0 KB |
Execution failed because the return code was nonzero |
2 |
Runtime error |
2 ms |
0 KB |
Execution failed because the return code was nonzero |
3 |
Runtime error |
2 ms |
0 KB |
Execution failed because the return code was nonzero |
4 |
Runtime error |
2 ms |
0 KB |
Execution failed because the return code was nonzero |
5 |
Runtime error |
2 ms |
0 KB |
Execution failed because the return code was nonzero |
6 |
Runtime error |
2 ms |
0 KB |
Execution failed because the return code was nonzero |
7 |
Runtime error |
2 ms |
0 KB |
Execution failed because the return code was nonzero |
8 |
Runtime error |
2 ms |
0 KB |
Execution failed because the return code was nonzero |
9 |
Runtime error |
2 ms |
0 KB |
Execution failed because the return code was nonzero |
10 |
Runtime error |
2 ms |
0 KB |
Execution failed because the return code was nonzero |
11 |
Runtime error |
2 ms |
0 KB |
Execution failed because the return code was nonzero |
12 |
Runtime error |
2 ms |
0 KB |
Execution failed because the return code was nonzero |
13 |
Runtime error |
2 ms |
0 KB |
Execution failed because the return code was nonzero |
14 |
Runtime error |
2 ms |
0 KB |
Execution failed because the return code was nonzero |
15 |
Runtime error |
2 ms |
0 KB |
Execution failed because the return code was nonzero |
16 |
Runtime error |
2 ms |
0 KB |
Execution failed because the return code was nonzero |
17 |
Runtime error |
2 ms |
0 KB |
Execution failed because the return code was nonzero |
18 |
Runtime error |
2 ms |
0 KB |
Execution failed because the return code was nonzero |
19 |
Runtime error |
2 ms |
0 KB |
Execution failed because the return code was nonzero |
20 |
Runtime error |
2 ms |
0 KB |
Execution failed because the return code was nonzero |