Submission #149899

# Submission time Handle Problem Language Result Execution time Memory
149899 2019-09-01T07:21:58 Z 준표야 함수컵은 캐리해줄거지?(#3588, Acka, spectaclehong, heiler) King of Chairs (FXCUP4_chairs) C++17
0 / 100
50 ms 3528 KB
#include "king.h"

long long SendInfo(std::vector<int> W, std::vector<int> C) {
	int N = W.size();
	return W[0]*100 + W[1]*10 + W[2]*1;
}
#include "vassal.h"
using namespace std;

long long BB;
int ans[100000];

void Init(long long B, std::vector<int> C){
	int N = C.size();
	BB = B;
	// ToDo
}

int Maid(int W){
	if(W == BB%10) return 2;
	if(W == BB/100) return 0;
	return -1;
}

Compilation message

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

vassal.cpp: In function 'void Init(long long int, std::vector<int>)':
vassal.cpp:8:6: warning: unused variable 'N' [-Wunused-variable]
  int N = C.size();
      ^
# Verdict Execution time Memory Grader output
1 Correct 10 ms 1056 KB Correct
2 Incorrect 10 ms 1060 KB Wrong
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 49 ms 3268 KB Wrong
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 50 ms 3528 KB Wrong
2 Halted 0 ms 0 KB -