mirror of
https://gitcode.com/Zengtudor/alg2025.git
synced 2026-02-03 17:27:18 +00:00
feat: 添加P2905.cpp解决牛和草场的位置记录问题
This commit is contained in:
parent
5aba1b0bab
commit
ae6d4da30e
26
src/11/20/P2905.cpp
Normal file
26
src/11/20/P2905.cpp
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
#include <cstdint>
|
||||||
|
#include <iostream>
|
||||||
|
#include <istream>
|
||||||
|
using ll = int64_t;
|
||||||
|
|
||||||
|
ll n,m,k;
|
||||||
|
const ll maxn=1000+7;
|
||||||
|
bool cow[maxn][maxn],g[maxn][maxn];
|
||||||
|
|
||||||
|
int main(){
|
||||||
|
std::iostream::sync_with_stdio(false);
|
||||||
|
std::cin.tie(nullptr);
|
||||||
|
|
||||||
|
std::cin>>n>>m>>k;
|
||||||
|
for(ll i=1;i<=n;i++){
|
||||||
|
ll x,y;
|
||||||
|
std::cin>>x>>y;
|
||||||
|
cow[x][y]=true;
|
||||||
|
}
|
||||||
|
for(ll i=1;i<=m;i++){
|
||||||
|
ll x,y;
|
||||||
|
std::cin>>x>>y;
|
||||||
|
g[x][y]=true;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user