제출 #1061123

#제출 시각아이디문제언어결과실행 시간메모리
1061123KerimSequence (APIO23_sequence)C++17
0 / 100
75 ms11708 KiB
#include "sequence.h"

#include <vector>
#include "bits/stdc++.h"
using namespace std;
int sequence(int N, std::vector<int> A) {
  std::vector<int> cnt(3);
  for (auto x: A){
    assert(1 <= x and x <= 3);
    cnt[x-1] += 1;
  }
  return max(cnt[0], max(cnt[1], cnt[2]));
}
#결과 실행 시간메모리채점기 출력
결과를 불러오는 중입니다…
#결과 실행 시간메모리채점기 출력
결과를 불러오는 중입니다…
#결과 실행 시간메모리채점기 출력
결과를 불러오는 중입니다…
#결과 실행 시간메모리채점기 출력
결과를 불러오는 중입니다…
#결과 실행 시간메모리채점기 출력
결과를 불러오는 중입니다…
#결과 실행 시간메모리채점기 출력
결과를 불러오는 중입니다…
#결과 실행 시간메모리채점기 출력
결과를 불러오는 중입니다…