답안 #84056

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
84056 2018-11-12T14:27:37 Z thiago4532 Burza (COCI16_burza) C++17
0 / 160
6 ms 1276 KB
#include <bits/stdc++.h>

using namespace std;

int main(){
    ios::sync_with_stdio(false), cin.tie(0);
    int n, k;
    cin >> n >> k;
    int prob = (100.0*k*k)/n;
    //cout << prob << "%\n";
    vector<int> v;
    v.assign(100, 0);  
    for(int i=0;i<prob;i++) v[i] = 1;

    mt19937 gen(time(0));
    shuffle(v.begin(), v.end(), gen);

    cout << (v[0]?"DA":"NE") << "\n";
    return 0;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 376 KB Output is correct
2 Correct 2 ms 376 KB Output is correct
3 Runtime error 6 ms 876 KB Execution killed with signal 11 (could be triggered by violating memory limits)
4 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 2 ms 876 KB Output isn't correct
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 2 ms 876 KB Output isn't correct
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 876 KB Output is correct
2 Correct 2 ms 876 KB Output is correct
3 Runtime error 5 ms 992 KB Execution killed with signal 11 (could be triggered by violating memory limits)
4 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 992 KB Output is correct
2 Correct 2 ms 992 KB Output is correct
3 Runtime error 5 ms 1204 KB Execution killed with signal 11 (could be triggered by violating memory limits)
4 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 1204 KB Output is correct
2 Correct 2 ms 1204 KB Output is correct
3 Runtime error 5 ms 1204 KB Execution killed with signal 11 (could be triggered by violating memory limits)
4 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 1204 KB Output is correct
2 Correct 2 ms 1204 KB Output is correct
3 Runtime error 5 ms 1276 KB Execution killed with signal 11 (could be triggered by violating memory limits)
4 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 2 ms 1276 KB Output isn't correct
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 2 ms 1276 KB Output isn't correct
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 2 ms 1276 KB Output isn't correct
2 Halted 0 ms 0 KB -