#include"Anyalib.h"
#include<iostream>
#include<vector>
#include<algorithm>
#define ep emplace
#define eb emplace_back
#define fi first
#define se second
#define all(x) (x).begin(),(x).end()
using namespace std;
typedef long long ll;
typedef pair<int,int>pi;
typedef pair<ll,ll>pl;
const int inf=1e9+7;
const ll INF=1e18+7;
static vector<pi>edge;
static int n;
void InitAnya(int N,int A[],int B[])
{
n=N;
for(int i=0;i<n-1;i++)
edge.eb(A[i],B[i]);
return;
}
void Anya(int C[])
{
vector<int>p(n,0);
for(int i=1;i<n;i++)
p[i]=p[i-1]+C[i-1];
for(int i=0;(i+1)*10<n;i++)
for(int j=0;j<9;j++)
Save(i*9+j,p[(i+1)*10]>>j&1);
for(int i=0;i<n-1;i++)
Save(500+i,C[i]);
return;
}
#include"Borislib.h"
#include<iostream>
#include<vector>
#include<algorithm>
#define ep emplace
#define eb emplace_back
#define fi first
#define se second
#define all(x) (x).begin(),(x).end()
using namespace std;
typedef long long ll;
typedef pair<int,int>pi;
typedef pair<ll,ll>pl;
const int inf=1e9+7;
const ll INF=1e18+7;
static vector<pi>edge;
static int n;
void InitBoris(int N ,int A[],int B[])
{
n=N;
for(int i=0;i<n-1;i++)
edge.eb(A[i],B[i]);
return;
}
int Boris(int city)
{
int get=0;
if(city>=10)
for(int i=0;i<9;i++)
get+=Ask((city/10-1)*9+i)*(1<<i);
for(int i=city/1*1;i<city;i++)
get+=Ask(500+i);
return get;
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
1 ms |
784 KB |
Wrong Answer [7] |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
7 ms |
1052 KB |
Wrong Answer [7] |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
14 ms |
1280 KB |
Wrong Answer [7] |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
13 ms |
1464 KB |
Wrong Answer [7] |
2 |
Halted |
0 ms |
0 KB |
- |