답안 #72508

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
72508 2018-08-26T08:39:58 Z BOJ 8481(#2179, veydpz, jh05013, 16silver) 재채점 전쟁 (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');
}
# 결과 실행 시간 메모리 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
# 결과 실행 시간 메모리 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 -
# 결과 실행 시간 메모리 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 -