Submission #976129

# Submission time Handle Problem Language Result Execution time Memory
976129 2024-05-06T08:07:19 Z vjudge1 Pizza (COCI21_pizza) C++17
0 / 50
1 ms 348 KB
#include <bits/stdc++.h>
using namespace std;
int main(){
    int N; cin >> N;
    int A[N];
    string Ai;
    for(int i = 0; i < N; i++){
        cin >> A[i];
        Ai += to_string(A[i]);
    }
    int M; cin >> M;
    int beli = 0;
    for(int i = 0; i < M; i++){
        int K;
        cin >> K;
        int B[K];
        bool boleh = true;
        for(int j = 0; j < K; j++){
            cin >> B[j];
            string Bi = to_string(B[j]);
            if(Ai.find(Bi) != -1){
                boleh = false;
            }
        }
        if(boleh) beli++;
    }
    cout << beli <<endl; 
    return 0;
}

Compilation message

Main.cpp: In function 'int main()':
Main.cpp:21:28: warning: comparison of integer expressions of different signedness: 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
   21 |             if(Ai.find(Bi) != -1){
      |                ~~~~~~~~~~~~^~~~~
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 344 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 344 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 348 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB Output isn't correct
2 Halted 0 ms 0 KB -