Submission #4903

#TimeUsernameProblemLanguageResultExecution timeMemory
4903gs13068생일수 I (GA4_birthday1)C++98
0 / 100
0 ms1088 KiB
#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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...