Submission #14857

# Submission time Handle Problem Language Result Execution time Memory
14857 2015-07-01T14:09:53 Z pichulia 카드 (tutorial6) C++
67 / 100
475 ms 43276 KB
#include"jeehak.h"

void jeehak(int A[])
{
int i, j, k;
  for(i=1;i<=5;i++)
  {
    if(A[i]<5)j=0;else{A[i]-=5; j=1;}
    send(A[i]+1,j);    
  }
}
#include"friends.h"

void friends(int A[],int N,int X[],int Y[])
{
int i, j, k;
int si;
for(i=1;i<=5;i++)if(A[i] == -1)break;
si = i;
  k=X[si]-1;
  k+=Y[si]*5;
guess(k);
}
# Verdict Execution time Memory Grader output
1 Correct 444 ms 43276 KB Output is correct - 최대 카드수 : 5
# Verdict Execution time Memory Grader output
1 Correct 475 ms 43276 KB Output is correct - 최대 카드수 : 5