#include<bits/stdc++.h>
#include "Joi.h"
using namespace std;
#define ll long long
#define pb push_back
#define ff first
#define ss second
#define all(s) s.begin(),s.end()
#define rall(s) s.rbegin(),s.rend()
void Joi(int N, int M, int A[], int B[], long long X, int T){
for(int i=0;i<N;i++){
if(i<60&&(X&(1ll<<i))){
MessageBoard(i,1);
}
else{
MessageBoard(i,0);
}
}
}
#include<bits/stdc++.h>
#include "Ioi.h"
using namespace std;
#define ll long long
#define pb push_back
#define ff first
#define ss second
#define all(s) s.begin(),s.end()
#define rall(s) s.rbegin(),s.rend()
const int maxn=1e4+5;
vector<int>adj[maxn],num(maxn,0);
vector<bool>used(maxn,0);
void dfs(int x,int p){
used[x]=true;
for(int y:adj[x]){
if(y!=p){
int val=Move(y);
num[y]=val;
dfs(y,x);
}
}
}
long long Ioi(int N, int M, int A[], int B[], int P, int V, int T){
num[P]=V;
dfs(P,-1);
long long ans=0;
for(int i=0;i<60;i++){
if(num[i]==1) ans+=(1ll<<i);
}
return ans;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
1044 KB |
Wrong Answer [7] |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
12 ms |
2748 KB |
Wrong Answer [7] |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
1044 KB |
Wrong Answer [7] |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
11 ms |
2604 KB |
Wrong Answer [7] |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
12 ms |
2600 KB |
Wrong Answer [7] |
2 |
Halted |
0 ms |
0 KB |
- |