| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 2938 | imsifile | 생일수 I (GA4_birthday1) | C++98 | 76 ms | 1088 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<stdio.h>
#define rp(a,b) for(i=b;i--;)putchar(a)
int m[8]={0,9,10,3,12,5,6,15};
void t(){
int x,i,j;
scanf("%d",&x),j=m[x%8];
if(x<j)puts("-1");
else{
if(x>=20&&x%8==4)j=20;
if(j%5)rp('3',j/3);
else rp('5',j/5);
rp('8',(x-j)/8);puts("");
}
}
int main(){
int n;
for(scanf("%d",&n);n--;)t();
return 0;
}| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
