Submission #1310100

#TimeUsernameProblemLanguageResultExecution timeMemory
1310100eyadoozcmp (balkan11_cmp)C++20
0 / 100
510 ms82520 KiB
#include<bits/stdc++.h>
#include "cmp.h"
using namespace std;

typedef long long ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;

#define pb push_back
#define all(x) (x).begin(), (x).end()
#define sz(x) (int) (x).size()
#define endl '\n'

int bit[64]={};
void remember(int x) 
{
    bit_set(1);
    memset(bit, 0, sizeof(bit));
    for(int i =0 ;i < 12;i++) bit[i]=(1ll<<i)&x;
}
int compare(int x) 
{
    int f=0;
    for(int i = 0;i < 12;i++) 
        if(bit[i]) f+=(1ll<<i);
    if(f==x) return 0;
    if(x<f) return -1;
    else return 1;
}
#Verdict Execution timeMemoryGrader output
Fetching results...