| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 2515 | kipa00 | 생일수 I (GA4_birthday1) | C++98 | 1000 ms | 884 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <cstdio>
using namespace std;
int T, N;
int threes, fives, eights;
int t[8] = {0, 3, 0, 1, 4, 0, 2, 0};
int f[8] = {0, 0, 2, 0, 0, 1, 0, 3};
int e[8] = {0, 1, 1, 0, 1, 0, 0, 1};
void makeinput(char c, int count) {
while (count--) {
printf("%c", c);
}
}
int main() {
scanf("%d", &T);
while (T--) {
threes = fives = eights = 0;
scanf("%d", &N);
eights = N / 8;
N %= 8;
threes += t[N]; fives += f[N]; eights -= e[N];
makeinput('3', threes);
makeinput('5', fives);
makeinput('8', eights);
printf("\n");
}
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... | ||||
