제출 #976395

#제출 시각아이디문제언어결과실행 시간메모리
976395vjudge1Pizza (COCI21_pizza)C++17
50 / 50
1 ms348 KiB
#include <bits/stdc++.h> using namespace std; #define ll long long #define pb push_back #define pll pair<ll,ll> const ll MOD=1e9+7; #define ll int //#define ll int //KALAU TAKUT RTE bool cmp (pair<ll,ll> x, pair<ll,ll>y){ return x.second < y.second; } signed main(){ ios_base::sync_with_stdio(0); cin.tie(0); ll n; cin>>n; set<ll>a; for (int i=0; i<n;i++){ ll x; cin>>x; a.insert(x); } ll m ; cin>>m; ll cnt=0; while(m--){ ll k; cin>>k; bool suka = true; for (int i=0; i<k;i++){ ll x; cin>>x; if (a.count(x)) suka=false; } if (suka) cnt++; } cout<<cnt<<endl; }

컴파일 시 표준 에러 (stderr) 메시지

Main.cpp:10: warning: "ll" redefined
   10 | #define ll int
      | 
Main.cpp:4: note: this is the location of the previous definition
    4 | #define ll long long
      |
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...