Submission #4903

# Submission time Handle Problem Language Result Execution time Memory
4903 2014-01-07T07:26:24 Z gs13068 생일수 I (GA4_birthday1) C++
0 / 100
0 ms 1088 KB
#include<cstdio>

int main()
{
  int i,j,n;
  scanf("%d",&n);
  for(i=0;i*3<=n;i++)if((n-i*3)%8==0)break;
  if(i*3<=n)
  {
    for(j=0;j<i;j++)printf("3");
    for(j=0;j<(n-i*3)/8;j++)printf("8");
  }
  else puts("-1");
}
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 1088 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 1088 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 1088 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 1088 KB Output isn't correct
2 Halted 0 ms 0 KB -