# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
257296 |
2020-08-04T05:07:47 Z |
최은수(#5045) |
None (JOI16_snowy) |
C++14 |
|
18 ms |
1708 KB |
#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+=1<<Ask(city/10-1);
for(int i=city/10*10;i<city;i++)
get+=Ask(500+i);
return get;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
2 ms |
1024 KB |
Output is correct |
2 |
Incorrect |
2 ms |
788 KB |
Wrong Answer [7] |
3 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
9 ms |
1156 KB |
Wrong Answer [7] |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
17 ms |
1708 KB |
Wrong Answer [7] |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
18 ms |
1544 KB |
Wrong Answer [7] |
2 |
Halted |
0 ms |
0 KB |
- |