Submission #72508

# Submission time Handle Problem Language Result Execution time Memory
72508 2018-08-26T08:39:58 Z BOJ 8481(#2179, veydpz, jh05013, 16silver) Judge Against Wrong Code (FXCUP3_judge) C++17
10 / 100
3 ms 648 KB
#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 time Memory Grader output
1 Correct 2 ms 376 KB Output is correct
2 Correct 3 ms 464 KB Output is correct
3 Correct 3 ms 464 KB Output is correct
4 Correct 3 ms 464 KB Output is correct
5 Correct 3 ms 472 KB Output is correct
6 Correct 2 ms 472 KB Output is correct
7 Correct 3 ms 472 KB Output is correct
8 Correct 3 ms 520 KB Output is correct
9 Correct 2 ms 520 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 2 ms 376 KB Output is correct
2 Correct 3 ms 464 KB Output is correct
3 Correct 3 ms 464 KB Output is correct
4 Correct 3 ms 464 KB Output is correct
5 Correct 3 ms 472 KB Output is correct
6 Correct 2 ms 472 KB Output is correct
7 Correct 3 ms 472 KB Output is correct
8 Correct 3 ms 520 KB Output is correct
9 Correct 2 ms 520 KB Output is correct
10 Runtime error 2 ms 648 KB Execution killed with signal 11 (could be triggered by violating memory limits)
11 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 2 ms 376 KB Output is correct
2 Correct 3 ms 464 KB Output is correct
3 Correct 3 ms 464 KB Output is correct
4 Correct 3 ms 464 KB Output is correct
5 Correct 3 ms 472 KB Output is correct
6 Correct 2 ms 472 KB Output is correct
7 Correct 3 ms 472 KB Output is correct
8 Correct 3 ms 520 KB Output is correct
9 Correct 2 ms 520 KB Output is correct
10 Runtime error 2 ms 648 KB Execution killed with signal 11 (could be triggered by violating memory limits)
11 Halted 0 ms 0 KB -