# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
976975 |
2024-05-07T09:55:50 Z |
Rux007 |
Lozinke (COCI17_lozinke) |
C++14 |
|
1000 ms |
1112 KB |
#include <bits/stdc++.h>
using namespace std;
int n, fr[20005], sumi;
char a[20005][20];
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(NULL);
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 |
1 ms |
344 KB |
Output is correct |
2 |
Correct |
1 ms |
344 KB |
Output is correct |
3 |
Correct |
1 ms |
348 KB |
Output is correct |
4 |
Correct |
4 ms |
344 KB |
Output is correct |
5 |
Correct |
25 ms |
488 KB |
Output is correct |
6 |
Correct |
77 ms |
600 KB |
Output is correct |
7 |
Correct |
91 ms |
348 KB |
Output is correct |
8 |
Correct |
57 ms |
344 KB |
Output is correct |
9 |
Execution timed out |
1063 ms |
604 KB |
Time limit exceeded |
10 |
Execution timed out |
1022 ms |
600 KB |
Time limit exceeded |
11 |
Execution timed out |
1034 ms |
856 KB |
Time limit exceeded |
12 |
Execution timed out |
1043 ms |
856 KB |
Time limit exceeded |
13 |
Execution timed out |
1030 ms |
860 KB |
Time limit exceeded |
14 |
Execution timed out |
1074 ms |
860 KB |
Time limit exceeded |
15 |
Execution timed out |
1069 ms |
860 KB |
Time limit exceeded |
16 |
Execution timed out |
1043 ms |
856 KB |
Time limit exceeded |
17 |
Execution timed out |
1038 ms |
1112 KB |
Time limit exceeded |
18 |
Execution timed out |
1046 ms |
860 KB |
Time limit exceeded |
19 |
Execution timed out |
1050 ms |
860 KB |
Time limit exceeded |
20 |
Execution timed out |
1014 ms |
856 KB |
Time limit exceeded |