Submission #72508

#TimeUsernameProblemLanguageResultExecution timeMemory
72508BOJ 8481 (#118)Judge Against Wrong Code (FXCUP3_judge)C++17
10 / 100
3 ms648 KiB
#include <bits/stdc++.h> #define dbgv(v) {for(auto x:v)cout<<x<<' ';cout<<'\n';} #define entire(v) v.begin(),v.end() typedef long long ll; using namespace std; void OJize(){ cin.tie(NULL); ios_base::sync_with_stdio(false); #ifdef jh freopen("input.txt", "r", stdin); #endif } bool attack(string& d, string& s){ for(size_t i = 0; i<d.size(); i++) if(d[i] == 'o' && s[i] == 'x') return true; return false; } int main(){OJize(); int ps; cin>>ps; int d; cin>>d; vector<string> duk(ps); for(int i=0; i<d; i++) cin>>duk[i]; int c; cin>>c; vector<string> sub(ps); for(int i=0; i<c; i++) cin>>sub[i]; vector<bool> ans(c+1); for(int i=0; i<d; i++){ int cnt = 0; for(int j=0; j<c; j++) if(attack(duk[i], sub[j])) cnt++; ans[cnt] = true; } for(int i=1; i<=c; i++) cout << (ans[i]? 'o':'x'); }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...