Submission #4323

# Submission time Handle Problem Language Result Execution time Memory
4323 2013-09-14T11:56:01 Z kipa00 카드 (tutorial6) C++
100 / 100
380 ms 43280 KB
#include "jeehak.h"

void jeehak(int A[]) {
  int num = (A[5] + A[1] + A[2] + A[3] + A[4]) % 10 + 2;
  send(num >> 1, num & 1);
}
#include "friends.h"

void friends(int A[], int N, int X[], int Y[]) {
  int checksum = ((*(X+1) << 1) | *(Y+1)) - 2;
  guess((100 + checksum - (A[5] + A[1] + A[2] + A[3] + A[4] + 1)) % 10);
}
# Verdict Execution time Memory Grader output
1 Correct 360 ms 43280 KB Output is correct - 최대 카드수 : 1
# Verdict Execution time Memory Grader output
1 Correct 380 ms 43280 KB Output is correct - 최대 카드수 : 1