답안 #1024564

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1024564 2024-07-16T07:53:37 Z 변재우(#10939) Broken Device 2 (JOI22_device2) C++17
5 / 100
496 ms 32612 KB
#include "Anna.h"
#include <bits/stdc++.h>
using namespace std;

int Declare() {
  return 2000;
}

pair<vector<int>, vector<int> > Anna(long long A) {
  vector<int> X(2000), Y(2000);
  for(int i=0; i<A; i++) X[i]=1;
  return {X, Y};
}
#include "Bruno.h"
#include <bits/stdc++.h>
using namespace std;

long long Bruno(vector<int> u) {
  int ret=0;
  for(int i=0; i<u.size(); i++) ret+=u[i];
  return ret;
}

Compilation message

Bruno.cpp: In function 'long long int Bruno(std::vector<int>)':
Bruno.cpp:7:17: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
    7 |   for(int i=0; i<u.size(); i++) ret+=u[i];
      |                ~^~~~~~~~~
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 808 KB Output is correct
2 Correct 451 ms 32612 KB Output is correct
3 Correct 496 ms 32556 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 808 KB Output is correct
2 Correct 451 ms 32612 KB Output is correct
3 Correct 496 ms 32556 KB Output is correct
4 Runtime error 1 ms 604 KB Execution killed with signal 11
5 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 808 KB Output is correct
2 Correct 451 ms 32612 KB Output is correct
3 Correct 496 ms 32556 KB Output is correct
4 Runtime error 1 ms 604 KB Execution killed with signal 11
5 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 808 KB Output is correct
2 Correct 451 ms 32612 KB Output is correct
3 Correct 496 ms 32556 KB Output is correct
4 Runtime error 1 ms 604 KB Execution killed with signal 11
5 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 808 KB Output is correct
2 Correct 451 ms 32612 KB Output is correct
3 Correct 496 ms 32556 KB Output is correct
4 Runtime error 1 ms 604 KB Execution killed with signal 11
5 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Runtime error 1 ms 604 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -