Submission #864456

# Submission time Handle Problem Language Result Execution time Memory
864456 2023-10-23T03:13:09 Z willychan Broken Device 2 (JOI22_device2) C++17
0 / 100
605 ms 30968 KB
#include "Anna.h"
#include <utility>
#include <vector>
using namespace std;
namespace {
const int P = 30;
int variable_example = 0;

}

int Declare() {
  return P*63;
}

std::pair<std::vector<int>, std::vector<int> > Anna(long long A) {
	vector<int> X;
	vector<int> Y;
	for(int i=0;i<P*63;i++) Y.push_back(0);
	for(int i=0;i<63;i++){
		X.push_back(((A>>i)&1));
		for(int i=0;i<P-1;i++) X.push_back(0);
	}
  	return make_pair(X, Y);
}
#include "Bruno.h"
#include <utility>
#include <vector>
#include<iostream>
using namespace std;
namespace {
const int P = 10;
int variable_example = 0;

}

long long Bruno(std::vector<int> u) {
	long long A = 0;		
	int sz = u.size();
	for(int i=0;i<sz;i++){
		if(u[i]==1) A+=(1LL<<(i/(2*P)+1));
	}
//	cerr<<A<<"\n";
	return A;
}

Compilation message

Anna.cpp:7:5: warning: '{anonymous}::variable_example' defined but not used [-Wunused-variable]
    7 | int variable_example = 0;
      |     ^~~~~~~~~~~~~~~~

Bruno.cpp:8:5: warning: '{anonymous}::variable_example' defined but not used [-Wunused-variable]
    8 | int variable_example = 0;
      |     ^~~~~~~~~~~~~~~~
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 796 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 796 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 796 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 796 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 796 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 605 ms 30968 KB Output isn't correct
2 Halted 0 ms 0 KB -