답안 #864451

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
864451 2023-10-23T02:36:50 Z willychan Broken Device 2 (JOI22_device2) C++17
5 / 100
590 ms 524288 KB
#include "Anna.h"
#include <utility>
#include <vector>
using namespace std;
namespace {
const int M = 2000;
int variable_example = 0;

}

int Declare() {
  return M;
}

std::pair<std::vector<int>, std::vector<int> > Anna(long long A) {
 	vector<int> X;
	vector<int> Y;
	for(int i=0;i<A;i++) X.push_back(1);
	for(int i=0;i<M-A;i++) X.push_back(0);
	for(int i=0;i<M;i++) Y.push_back(0);
  	return make_pair(X, Y);
}
#include "Bruno.h"
#include <utility>
#include <vector>

namespace {

int variable_example = 0;

}

long long Bruno(std::vector<int> u) {
	long long cnt = 0;
	for(auto i : u) cnt+=(i==1);
	return cnt;
}

Compilation message

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

Bruno.cpp:7:5: warning: '{anonymous}::variable_example' defined but not used [-Wunused-variable]
    7 | int variable_example = 0;
      |     ^~~~~~~~~~~~~~~~
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 808 KB Output is correct
2 Correct 566 ms 32668 KB Output is correct
3 Correct 590 ms 32744 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 808 KB Output is correct
2 Correct 566 ms 32668 KB Output is correct
3 Correct 590 ms 32744 KB Output is correct
4 Incorrect 13 ms 21160 KB Wrong Answer [4]
5 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 808 KB Output is correct
2 Correct 566 ms 32668 KB Output is correct
3 Correct 590 ms 32744 KB Output is correct
4 Incorrect 13 ms 21160 KB Wrong Answer [4]
5 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 808 KB Output is correct
2 Correct 566 ms 32668 KB Output is correct
3 Correct 590 ms 32744 KB Output is correct
4 Incorrect 13 ms 21160 KB Wrong Answer [4]
5 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 808 KB Output is correct
2 Correct 566 ms 32668 KB Output is correct
3 Correct 590 ms 32744 KB Output is correct
4 Incorrect 13 ms 21160 KB Wrong Answer [4]
5 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Runtime error 378 ms 524288 KB Execution killed with signal 9
2 Halted 0 ms 0 KB -