# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
976929 |
2024-05-07T09:19:46 Z |
Rux007 |
Lozinke (COCI17_lozinke) |
C++14 |
|
1000 ms |
860 KB |
#include <bits/stdc++.h>
using namespace std;
int n, fr[20005], sumi;
char a[20005][20];
int main()
{
cin >> n;
for(int i = 1; i <= n; i ++)
cin >> a[i];
for(int i = 1; i <= n; i ++)
{
for(int j = 1; j <= n; j ++)
{
if(i == j)
continue;
char *p = strstr(a[i], a[j]);
if(p != NULL)
sumi ++;
}
}
cout << sumi;
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
348 KB |
Output is correct |
2 |
Correct |
1 ms |
348 KB |
Output is correct |
3 |
Correct |
1 ms |
348 KB |
Output is correct |
4 |
Correct |
4 ms |
348 KB |
Output is correct |
5 |
Correct |
25 ms |
348 KB |
Output is correct |
6 |
Correct |
76 ms |
348 KB |
Output is correct |
7 |
Correct |
93 ms |
472 KB |
Output is correct |
8 |
Correct |
65 ms |
480 KB |
Output is correct |
9 |
Execution timed out |
1043 ms |
604 KB |
Time limit exceeded |
10 |
Execution timed out |
1072 ms |
604 KB |
Time limit exceeded |
11 |
Execution timed out |
1093 ms |
588 KB |
Time limit exceeded |
12 |
Execution timed out |
1022 ms |
856 KB |
Time limit exceeded |
13 |
Execution timed out |
1063 ms |
860 KB |
Time limit exceeded |
14 |
Execution timed out |
1052 ms |
860 KB |
Time limit exceeded |
15 |
Execution timed out |
1051 ms |
860 KB |
Time limit exceeded |
16 |
Execution timed out |
1012 ms |
860 KB |
Time limit exceeded |
17 |
Execution timed out |
1073 ms |
860 KB |
Time limit exceeded |
18 |
Execution timed out |
1045 ms |
860 KB |
Time limit exceeded |
19 |
Execution timed out |
1055 ms |
856 KB |
Time limit exceeded |
20 |
Execution timed out |
1037 ms |
856 KB |
Time limit exceeded |