31 lines
466 B
C
31 lines
466 B
C
#include <stdio.h>
|
|
#include <string.h>
|
|
|
|
void output_int32(int x) {
|
|
printf("%d\n", x);
|
|
}
|
|
|
|
void output_int64(long x) {
|
|
printf("%ld\n", x);
|
|
}
|
|
|
|
void output_asciiart(int x) {
|
|
static char chars[] = " .,-:;i+hHM$*#@ ";
|
|
if(x < 0) {
|
|
putchar('\n');
|
|
} else {
|
|
if(x < strlen(chars)) {
|
|
putchar(chars[x]);
|
|
} else {
|
|
printf("ERROR\n");
|
|
}
|
|
}
|
|
}
|
|
|
|
extern int run();
|
|
|
|
int main() {
|
|
run();
|
|
return 0;
|
|
}
|