# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
2311 |
2013-07-21T02:24:56 Z |
zyslee |
생일수 I (GA4_birthday1) |
C++ |
|
63 ms |
884 KB |
#include<stdio.h>
int main()
{
int n, i, t, j, a, b, c, k, tt, l, z;
scanf("%d", &n);
for(i=1;i<=n;i++){
scanf("%d", &t);
a = t/8;
z = 0;
for(j=a;j>=0;j--){
b = (t-(j*8))/5;
for(k=b;k>=0;k--){
if((t-(j*8)-(k*5))%3==0){
for(l=1;l<=(t-(j*8)-(k*5))/3;l++) printf("3");
for(l=1;l<=k;l++) printf("5");
for(l=1;l<=j;l++) printf("8");
printf("\n");
z = 1;
break;
}
}
if(z==1) break;
}
}
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
884 KB |
Output isn't correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
884 KB |
Output isn't correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
884 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
63 ms |
884 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |