# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
472762 | 2021-09-14T09:52:57 Z | Ahmed_Solyman | Lozinke (COCI17_lozinke) | C++14 | 1000 ms | 844 KB |
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { ll n;cin>>n; vector<string>arr(n); for(auto &i:arr)cin>>i; ll ans=0; for(ll i=0;i<n;i++){ for(ll j=0;j<n;j++){ if(i==j)continue; if(arr[j].find(arr[i])!=-1){ ans++; } } } cout<<ans<<endl; return 0; }
Compilation message
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 204 KB | Output is correct |
2 | Correct | 1 ms | 204 KB | Output is correct |
3 | Correct | 1 ms | 204 KB | Output is correct |
4 | Correct | 4 ms | 204 KB | Output is correct |
5 | Correct | 19 ms | 312 KB | Output is correct |
6 | Correct | 49 ms | 332 KB | Output is correct |
7 | Correct | 74 ms | 332 KB | Output is correct |
8 | Correct | 56 ms | 332 KB | Output is correct |
9 | Execution timed out | 1090 ms | 588 KB | Time limit exceeded |
10 | Execution timed out | 1093 ms | 588 KB | Time limit exceeded |
11 | Execution timed out | 1085 ms | 716 KB | Time limit exceeded |
12 | Execution timed out | 1077 ms | 716 KB | Time limit exceeded |
13 | Execution timed out | 1090 ms | 844 KB | Time limit exceeded |
14 | Execution timed out | 1084 ms | 844 KB | Time limit exceeded |
15 | Execution timed out | 1083 ms | 844 KB | Time limit exceeded |
16 | Execution timed out | 1084 ms | 832 KB | Time limit exceeded |
17 | Execution timed out | 1076 ms | 844 KB | Time limit exceeded |
18 | Execution timed out | 1071 ms | 844 KB | Time limit exceeded |
19 | Execution timed out | 1080 ms | 844 KB | Time limit exceeded |
20 | Execution timed out | 1085 ms | 844 KB | Time limit exceeded |