Submission #257294

# Submission time Handle Problem Language Result Execution time Memory
257294 2020-08-04T05:05:11 Z 최은수(#5045) None (JOI16_snowy) C++14
0 / 100
8 ms 1460 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((n-1)*9+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(9*(n-1)+i);
    return get;
}
# Verdict Execution time Memory Grader output
1 Correct 1 ms 888 KB Output is correct
2 Incorrect 2 ms 1140 KB Wrong Answer [7]
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 8 ms 1460 KB Wrong Answer [7]
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 1012 KB Wrong Answer [1]
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 948 KB Wrong Answer [1]
2 Halted 0 ms 0 KB -