답안 #150683

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
150683 2019-09-01T08:49:07 Z =SUM(D1:D9)(#3629, ydk1104, stet_stet, Hyperbolic) 포도주 시음 (FXCUP4_wine) C++17
0 / 100
10 ms 908 KB
#include "bartender.h"

std::vector<int> BlendWines(int K, std::vector<int> R){
	int N = R.size();
	for(auto &i:R) i++; 
	return R;
}
#include "taster.h"

std::vector<int> SortWines(int K, std::vector<int> A) {
	int N = A.size();
	for(auto &i:A) i--;
	return A;
}

Compilation message

bartender.cpp: In function 'std::vector<int> BlendWines(int, std::vector<int>)':
bartender.cpp:4:6: warning: unused variable 'N' [-Wunused-variable]
  int N = R.size();
      ^

taster.cpp: In function 'std::vector<int> SortWines(int, std::vector<int>)':
taster.cpp:4:6: warning: unused variable 'N' [-Wunused-variable]
  int N = A.size();
      ^
# 결과 실행 시간 메모리 Grader output
1 Correct 9 ms 872 KB Correct
2 Correct 8 ms 800 KB Correct
3 Correct 10 ms 644 KB Correct
4 Correct 10 ms 676 KB Correct
5 Correct 9 ms 908 KB Correct
6 Correct 10 ms 644 KB Correct
7 Incorrect 8 ms 908 KB Wrong
8 Halted 0 ms 0 KB -