Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
46534 | Xiyou | 填涂颜色 | C++ | Wrong Answer | 0 MS | 268 KB | 312 | 2024-05-04 11:56:47 |
#include<bits/stdc++.h> using namespace std; int col[10002],row[10002]; int main(){ int n,m,x,y; cin>>n>>m>>x>>y; int c=0,r=0; for(int i=1,a;i<=x;i++){ cin>>a; col[a]++; if(col[a]==1){ c++; } } for(int i=1,a;i<=y;i++){ cin>>a; row[a]++; if(row[a]==1){ r++; } } }