답안 #588849

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
588849 2022-07-04T06:31:55 Z SeDunion Broken Device 2 (JOI22_device2) C++17
5 / 100
751 ms 524288 KB
#include "Anna.h"
#include <utility>
#include <vector>

using namespace std;
using vi = vector<int>;
using ll = long long;

namespace {

int variable_example = 0;

}

int Declare() {
	return 2000;
}

pair<vi,vi> Anna(ll A) {
	vi X, Y;
	while (A--) X.emplace_back(1);
	while ((int)X.size() < 2000) X.emplace_back(0);
	while ((int)Y.size() < 2000) Y.emplace_back(0);
	return make_pair(X, Y);
}
#include "Bruno.h"
#include <utility>
#include <vector>
 
using namespace std;
using vi = vector<int>;
using ll = long long;
 
namespace {
 
int variable_example = 0;
 
}
 
ll Bruno(vi u) {
	int cnt = 0;
	for (int i : u) cnt += i;
	return cnt;
}

Compilation message

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

Bruno.cpp:11:5: warning: '{anonymous}::variable_example' defined but not used [-Wunused-variable]
   11 | int variable_example = 0;
      |     ^~~~~~~~~~~~~~~~
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 760 KB Output is correct
2 Correct 679 ms 32564 KB Output is correct
3 Correct 751 ms 32408 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 760 KB Output is correct
2 Correct 679 ms 32564 KB Output is correct
3 Correct 751 ms 32408 KB Output is correct
4 Incorrect 21 ms 19520 KB Wrong Answer [4]
5 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 760 KB Output is correct
2 Correct 679 ms 32564 KB Output is correct
3 Correct 751 ms 32408 KB Output is correct
4 Incorrect 21 ms 19520 KB Wrong Answer [4]
5 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 760 KB Output is correct
2 Correct 679 ms 32564 KB Output is correct
3 Correct 751 ms 32408 KB Output is correct
4 Incorrect 21 ms 19520 KB Wrong Answer [4]
5 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 760 KB Output is correct
2 Correct 679 ms 32564 KB Output is correct
3 Correct 751 ms 32408 KB Output is correct
4 Incorrect 21 ms 19520 KB Wrong Answer [4]
5 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Runtime error 360 ms 524288 KB Execution killed with signal 9
2 Halted 0 ms 0 KB -