Submission #892942

#TimeUsernameProblemLanguageResultExecution timeMemory
892942Hhw48Trampoline (info1cup20_trampoline)C++14
0 / 100
26 ms10076 KiB
#include <bits/stdc++.h> using namespace std; #define int long long typedef pair<int,int> pii; #define fi first #define se second int32_t main(){ ios::sync_with_stdio(0); cin.tie(0); int r,c,n; cin>>r>>c>>n; vector<int>s[n]; for(int i=0; i<n; i++){ int y,x; cin>>y>>x; s[y].push_back(x); } int t; cin>>t; while(t--){ int sy,sx,ey,ex; cin>>sy>>sx>>ey>>ex; if(s[sy].empty()){ cout<<"No\n"; continue; } bool flag=0; for(int i=0; i<s[sy].size(); i++){ if(s[sy][i]<=ex){ cout<<"Yes\n"; flag=1; break; } } if(flag==0)cout<<"No\n"; } }

Compilation message (stderr)

trampoline.cpp: In function 'int32_t main()':
trampoline.cpp:28:17: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   28 |   for(int i=0; i<s[sy].size(); i++){
      |                ~^~~~~~~~~~~~~
#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...