Submission #15924

# Submission time Handle Problem Language Result Execution time Memory
15924 2015-08-01T13:31:45 Z ggoh 카드 (tutorial6) C++
100 / 100
354 ms 43276 KB
#include "jeehak.h"
void jeehak(int A[])
{
	int S=A[1]+A[2]+A[3]+A[4]+A[5];
	S%=10;
	send(S%5+1,S/5);
}


#include "friends.h"
void friends(int A[],int N,int X[],int Y[])
{
	int S=A[1]+A[2]+A[3]+A[4]+A[5]+1,d=X[1]-1+Y[1]*5;
	guess((d-S%10+10)%10);
}
# Verdict Execution time Memory Grader output
1 Correct 337 ms 43276 KB Output is correct - 최대 카드수 : 1
# Verdict Execution time Memory Grader output
1 Correct 354 ms 43276 KB Output is correct - 최대 카드수 : 1