답안 #933110

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
933110 2024-02-25T05:10:30 Z dubious_dude Lozinke (COCI17_lozinke) C++17
0 / 100
1000 ms 1368 KB
#include <bits/stdc++.h>
using namespace std;
#define fast_io cin.tie(0)->sync_with_stdio(false);

int main() {
    fast_io;

    int n; cin >> n;
    vector<string> pass(n);
    for(int i=0; i<n; i++) cin >> pass[i];

    int cnt = 0;
    for(int i=0; i<n; i++) {
        for(int j=i+1; j<n; j++) {
            if(pass[i].find(pass[j]) != pass[i].npos || pass[j].find(pass[i]) != pass[j].npos) {
                cnt++;
            }
        }
    }

    cout << cnt;

    return 0;
}
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 348 KB Output isn't correct
2 Incorrect 0 ms 348 KB Output isn't correct
3 Incorrect 0 ms 348 KB Output isn't correct
4 Incorrect 3 ms 348 KB Output isn't correct
5 Incorrect 14 ms 344 KB Output isn't correct
6 Incorrect 34 ms 516 KB Output isn't correct
7 Incorrect 55 ms 344 KB Output isn't correct
8 Incorrect 39 ms 348 KB Output isn't correct
9 Execution timed out 1063 ms 604 KB Time limit exceeded
10 Execution timed out 1048 ms 856 KB Time limit exceeded
11 Execution timed out 1036 ms 1116 KB Time limit exceeded
12 Execution timed out 1063 ms 860 KB Time limit exceeded
13 Execution timed out 1046 ms 1116 KB Time limit exceeded
14 Execution timed out 1030 ms 1368 KB Time limit exceeded
15 Execution timed out 1035 ms 1112 KB Time limit exceeded
16 Execution timed out 1040 ms 1112 KB Time limit exceeded
17 Execution timed out 1014 ms 1112 KB Time limit exceeded
18 Execution timed out 1018 ms 1112 KB Time limit exceeded
19 Execution timed out 1048 ms 1112 KB Time limit exceeded
20 Execution timed out 1074 ms 1116 KB Time limit exceeded