Submission #1141738

#TimeUsernameProblemLanguageResultExecution timeMemory
1141738ibshacmp (balkan11_cmp)C++20
0 / 100
425 ms82540 KiB
#include "cmp.h"

void remember(int a) {

    for (int i=0; i<=10; i++){
        if (a & (1<<i)) bit_set(i+1);
    }
}

int compare(int b) {
    int a=0;
    for (int i=0; i<=10; i++){
        if (bit_get(i+1)) a |= (1<<i);
    }
    if (b < a) return -1;
    else if (b == a) return 0;
    return 1;

}

#Verdict Execution timeMemoryGrader output
Fetching results...