Submission #16669

# Submission time Handle Problem Language Result Execution time Memory
16669 2015-09-04T10:39:34 Z CodingBug 카드 (tutorial6) C++
100 / 100
323 ms 43276 KB
#include"jeehak.h"

void jeehak(int A[])
{
    int su=0;
    for(int i=1;i<=5;i++) su+=A[i];
    send(su%5+1,(su/5)&1);
}
#include"friends.h"

void friends(int A[],int N,int X[],int Y[])
{
    int su=1,s=(X[1]-1)+Y[1]*5;
    for(int i=1;i<=5;i++) su+=A[i];
    guess((s-su+100)%10);
}
# Verdict Execution time Memory Grader output
1 Correct 315 ms 43276 KB Output is correct - 최대 카드수 : 1
# Verdict Execution time Memory Grader output
1 Correct 323 ms 43276 KB Output is correct - 최대 카드수 : 1