답안 #784404

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
784404 2023-07-16T05:49:28 Z irmuun 저장 (Saveit) (IOI10_saveit) C++17
0 / 100
117 ms 6684 KB
#include<bits/stdc++.h>
#include "grader.h"
#include "encoder.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()

void encode(int H,int N,int P,int *A,int *B){
    vector<int>adj[N];
    for(int i=0;i<P;i++){
        //adj[A[i]].pb(B[i]);
        //adj[B[i]].pb(A[i]);
    }
    int d[N];
    for(int i=0;i<H;i++){
        /*
        fill(d,d+N,-1);
        queue<int>q;
        d[i]=0;
        q.push(i);
        while(!q.empty()){
            int x=q.front();
            q.pop();
            for(auto y:adj[x]){
                if(d[y]==-1){
                    d[y]=d[x]+1;
                    q.push(y);
                }
            }
        }
        for(int j=0;j<N;j++){
            for(int k=0;k<10;k++){
                encode_bit(d[j]%2);
                d[j]/=2;
            }
        }
        */
    }
}
#include<bits/stdc++.h>
#include "grader.h"
#include "decoder.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()

void decode(int H,int N){
    for(int i=0;i<H;i++){
        for(int j=0;j<N;j++){
            int ans=0;
            /*
            for(int k=0;k<10;k++){
                ans+=decode_bit()*(1<<k);
            }
            */
            hops(i,j,ans);
        }
    }
}

Compilation message

encoder.cpp: In function 'void encode(int, int, int, int*, int*)':
encoder.cpp:19:9: warning: unused variable 'd' [-Wunused-variable]
   19 |     int d[N];
      |         ^
# 결과 실행 시간 메모리 Grader output
1 Incorrect 117 ms 6684 KB wrong parameter
2 Incorrect 2 ms 4484 KB wrong parameter
3 Incorrect 4 ms 4720 KB wrong parameter
4 Incorrect 2 ms 4612 KB Output isn't correct
5 Incorrect 6 ms 4728 KB wrong parameter
6 Incorrect 7 ms 4728 KB wrong parameter
7 Incorrect 12 ms 4908 KB wrong parameter
8 Incorrect 5 ms 4740 KB wrong parameter
9 Incorrect 4 ms 4736 KB wrong parameter
10 Incorrect 4 ms 4732 KB wrong parameter
11 Incorrect 6 ms 4740 KB wrong parameter
12 Incorrect 4 ms 4740 KB wrong parameter
13 Incorrect 26 ms 4908 KB wrong parameter
14 Incorrect 4 ms 4732 KB wrong parameter
15 Incorrect 4 ms 4732 KB wrong parameter
16 Incorrect 26 ms 4924 KB wrong parameter
17 Incorrect 14 ms 4832 KB wrong parameter
18 Incorrect 18 ms 5040 KB wrong parameter
19 Incorrect 17 ms 4836 KB wrong parameter
20 Incorrect 31 ms 5076 KB wrong parameter
21 Incorrect 28 ms 5208 KB wrong parameter
22 Incorrect 26 ms 4912 KB wrong parameter
23 Incorrect 31 ms 5176 KB wrong parameter
# 결과 실행 시간 메모리 Grader output
1 Incorrect 117 ms 6684 KB wrong parameter
2 Incorrect 2 ms 4484 KB wrong parameter
3 Incorrect 4 ms 4720 KB wrong parameter
4 Incorrect 2 ms 4612 KB Output isn't correct
5 Incorrect 6 ms 4728 KB wrong parameter
6 Incorrect 7 ms 4728 KB wrong parameter
7 Incorrect 12 ms 4908 KB wrong parameter
8 Incorrect 5 ms 4740 KB wrong parameter
9 Incorrect 4 ms 4736 KB wrong parameter
10 Incorrect 4 ms 4732 KB wrong parameter
11 Incorrect 6 ms 4740 KB wrong parameter
12 Incorrect 4 ms 4740 KB wrong parameter
13 Incorrect 26 ms 4908 KB wrong parameter
14 Incorrect 4 ms 4732 KB wrong parameter
15 Incorrect 4 ms 4732 KB wrong parameter
16 Incorrect 26 ms 4924 KB wrong parameter
17 Incorrect 14 ms 4832 KB wrong parameter
18 Incorrect 18 ms 5040 KB wrong parameter
19 Incorrect 17 ms 4836 KB wrong parameter
20 Incorrect 31 ms 5076 KB wrong parameter
21 Incorrect 28 ms 5208 KB wrong parameter
22 Incorrect 26 ms 4912 KB wrong parameter
23 Incorrect 31 ms 5176 KB wrong parameter
# 결과 실행 시간 메모리 Grader output
1 Incorrect 117 ms 6684 KB wrong parameter
2 Incorrect 2 ms 4484 KB wrong parameter
3 Incorrect 4 ms 4720 KB wrong parameter
4 Incorrect 2 ms 4612 KB Output isn't correct
5 Incorrect 6 ms 4728 KB wrong parameter
6 Incorrect 7 ms 4728 KB wrong parameter
7 Incorrect 12 ms 4908 KB wrong parameter
8 Incorrect 5 ms 4740 KB wrong parameter
9 Incorrect 4 ms 4736 KB wrong parameter
10 Incorrect 4 ms 4732 KB wrong parameter
11 Incorrect 6 ms 4740 KB wrong parameter
12 Incorrect 4 ms 4740 KB wrong parameter
13 Incorrect 26 ms 4908 KB wrong parameter
14 Incorrect 4 ms 4732 KB wrong parameter
15 Incorrect 4 ms 4732 KB wrong parameter
16 Incorrect 26 ms 4924 KB wrong parameter
17 Incorrect 14 ms 4832 KB wrong parameter
18 Incorrect 18 ms 5040 KB wrong parameter
19 Incorrect 17 ms 4836 KB wrong parameter
20 Incorrect 31 ms 5076 KB wrong parameter
21 Incorrect 28 ms 5208 KB wrong parameter
22 Incorrect 26 ms 4912 KB wrong parameter
23 Incorrect 31 ms 5176 KB wrong parameter
# 결과 실행 시간 메모리 Grader output
1 Incorrect 117 ms 6684 KB wrong parameter
2 Incorrect 2 ms 4484 KB wrong parameter
3 Incorrect 4 ms 4720 KB wrong parameter
4 Incorrect 2 ms 4612 KB Output isn't correct
5 Incorrect 6 ms 4728 KB wrong parameter
6 Incorrect 7 ms 4728 KB wrong parameter
7 Incorrect 12 ms 4908 KB wrong parameter
8 Incorrect 5 ms 4740 KB wrong parameter
9 Incorrect 4 ms 4736 KB wrong parameter
10 Incorrect 4 ms 4732 KB wrong parameter
11 Incorrect 6 ms 4740 KB wrong parameter
12 Incorrect 4 ms 4740 KB wrong parameter
13 Incorrect 26 ms 4908 KB wrong parameter
14 Incorrect 4 ms 4732 KB wrong parameter
15 Incorrect 4 ms 4732 KB wrong parameter
16 Incorrect 26 ms 4924 KB wrong parameter
17 Incorrect 14 ms 4832 KB wrong parameter
18 Incorrect 18 ms 5040 KB wrong parameter
19 Incorrect 17 ms 4836 KB wrong parameter
20 Incorrect 31 ms 5076 KB wrong parameter
21 Incorrect 28 ms 5208 KB wrong parameter
22 Incorrect 26 ms 4912 KB wrong parameter
23 Incorrect 31 ms 5176 KB wrong parameter