# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
564753 | Majid | Question (Grader is different from the original contest) (CEOI14_question_grader) | C++17 | 1794 ms | 24028 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include<bits/stdc++.h>
using namespace std;
//Types
using ll = long long;
using db = double;
//Vectors
#define pb push_back
#define sz(vec) ((ll)vec.size())
#define all(vec) vec.begin(), vec.end()
//things
#define f first
#define s second
const int SMALLINF = 1e9 + 7;
const ll BIGINF = ((ll)1e18) + 7;
#define Speeed ios::sync_with_stdio(0);cin.tie(NULL); cout.tie(NULL);
int encode(int n, int x, int y){
int num = -1, num2 = -1;
for(ll i = 0; i < 10; i++){
if (x&(1<<i) and !(y&(1<<i)))num = i+1;
else if(!(x&(1<<i)) and (y&(1<<i)))num2 = i+1;
}
if(num!=-1)return num;
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |