답안 #139507

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
139507 2019-07-31T23:09:13 Z zoooma13 Amusement Park (JOI17_amusement_park) C++14
0 / 100
11 ms 1272 KB
#include "bits/stdc++.h"
#include "Joi.h"
using namespace std;


void Joi(int N, int M, int A[], int B[], long long X, int T) {
    assert(T == 3);
    for(int i=0; i<N; i++)
        MessageBoard(i ,bool(X&(1LL<<(i%60))));
}
#include "bits/stdc++.h"
#include "Ioi.h"
using namespace std;

long long Ioi(int N, int M, int A[], int B[], int P, int V, int T) {
    assert(T == 3);
    bool b;
    while(P%60 || N-P<60)
        b = Move(--P);
    long long X = 0LL;
    for(int i=0; i<60; i++){
        X |= b*(1LL<<i);
        b = Move(++P);
    }
    return X;
}

Compilation message

Ioi.cpp: In function 'long long int Ioi(int, int, int*, int*, int, int, int)':
Ioi.cpp:12:15: warning: 'b' may be used uninitialized in this function [-Wmaybe-uninitialized]
         X |= b*(1LL<<i);
              ~^~~~~~~~~
# 결과 실행 시간 메모리 Grader output
1 Runtime error 3 ms 504 KB Execution killed with signal 11 (could be triggered by violating memory limits)
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Runtime error 10 ms 1144 KB Execution killed with signal 11 (could be triggered by violating memory limits)
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 4 ms 840 KB Output is correct
2 Correct 4 ms 888 KB Output is correct
3 Correct 4 ms 888 KB Output is correct
4 Incorrect 6 ms 976 KB Wrong Answer [7]
5 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Runtime error 11 ms 1272 KB Execution killed with signal 11 (could be triggered by violating memory limits)
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Runtime error 10 ms 1272 KB Execution killed with signal 11 (could be triggered by violating memory limits)
2 Halted 0 ms 0 KB -