# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
14859 |
2015-07-01T14:13:23 Z |
pichulia |
카드 (tutorial6) |
C++ |
|
355 ms |
43276 KB |
#include"jeehak.h"
void jeehak(int A[])
{
int i, j, k;
k=0;
for(i=1;i<=5;i++)
k+=A[i];
k%=10;
{
if(k<5)j=0;else{k-=5; j=1;}
send(k+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;
j=0;
for(i=1;i<=5;i++)if(i!=si)j+=A[i];
j%=10;
k=X[1]-1;
k+=Y[1]*5;
k -= j;
if(k<10)k+=10;
guess(k);
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
355 ms |
43276 KB |
Output isn't correct - friends 함수 오류 |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
334 ms |
43276 KB |
Output isn't correct - friends 함수 오류 |