제출 #995229

#제출 시각아이디문제언어결과실행 시간메모리
995229ASGA_RedSeaExamination (JOI19_examination)C++17
2 / 100
3051 ms1616 KiB
/** * بسم الله الرحمن الرحيم * ﴾ رَبِّ اشْرَحْ لِي صَدْرِي * وَيَسِّرْ لِي أَمْرِي * وَاحْلُلْ عُقْدَةً مِّن لِّسَانِي * يَفْقَهُوا قَوْلِي ﴿ */ /// author : "ASGA" #pragma GCC optimize("Ofast") #include <bits/stdc++.h> using namespace std; using ll = long long; signed main(){ ios_base::sync_with_stdio(0);cin.tie(0); int n,q,x,y,z,ans;cin >> n >> q; vector <pair <int,int>> a(n); for(auto& [i,j] : a)cin >> i >> j; while(q--){ cin >> x >> y >> z; ans = 0; for(const auto& [i,j] : a)ans += (x <= i && y <= j && z <= i + j); cout << ans << '\n'; } return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...