Submission #139506

# Submission time Handle Problem Language Result Execution time Memory
139506 2019-07-31T23:04:44 Z zoooma13 Amusement Park (JOI17_amusement_park) C++14
0 / 100
10 ms 1400 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%120){
        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:13:15: warning: 'b' may be used uninitialized in this function [-Wmaybe-uninitialized]
         X |= b*(1LL<<i);
              ~^~~~~~~~~
# Verdict Execution time Memory Grader output
1 Runtime error 2 ms 504 KB Execution killed with signal 11 (could be triggered by violating memory limits)
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 10 ms 1400 KB Execution killed with signal 11 (could be triggered by violating memory limits)
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 4 ms 756 KB Output is correct
2 Correct 4 ms 772 KB Output is correct
3 Correct 4 ms 764 KB Output is correct
4 Incorrect 5 ms 936 KB Wrong Answer [7]
5 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 10 ms 1400 KB Execution killed with signal 11 (could be triggered by violating memory limits)
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 10 ms 1400 KB Execution killed with signal 11 (could be triggered by violating memory limits)
2 Halted 0 ms 0 KB -