Welcome Guest ( Log In | Register )

Outline · [ Standard ] · Linear+

 Use the creative way to print "2023"

views
     
TSFlierMate
post Nov 20 2022, 08:56 PM, updated 2y ago

On my way
****
Validating
543 posts

Joined: Nov 2020
Hi fellow coders! Since 2019 starting my inaugural LYN unofficial coding challenge on here, I have only organized another "smallest PDF file" crafting challenge on Kaki.gg developer's forum (by @pujan, but now no longer existed).

Thanks to @angch, this is my simple task for everyone on here.

Guess what is it? Print "2023" characters (minimum 50 columns x 10 rows) the creative way.
Since everyone use different programming language, compilers & interpreters, it is difficult to assess your work by size of program, lines of code, or execution speed. So your work will be judged by its creativity of generating the "2023" big characters on screen (or on webpage).

Example:

user posted image

Some suggestions on how to print "2023" the creative way.
1) Store the 50x10 characters in compressed format, and expand it when printing out

2) Convert from image (B/W, etc) to ASCII art containing "2023"

3) Read system's font information (8x8, etc), and expand each pixel to larger size when printing out

4) Print "2023" as it is (the least creative way brows.gif )

You can do like below, but it will be the least creative.

CODE
#include <stdio.h>

int main()
{
printf("    **         *******        **       *******    \r\n");
printf("  **  **     **       **    **  **          **    \r\n");
printf("      **     **       **        **         **     \r\n");
printf("      **     **       **        **        **      \r\n");
printf("    **       **       **       **          **     \r\n");
printf("   **        **       **      **             **   \r\n");
printf("  **         **       **     **              **   \r\n");
printf(" **          **       **    **               **   \r\n");
printf(" **          **       **    **        **    **    \r\n");
printf(" *******       *******      *******     ****      \r\n");

return 0;
}


You can do it with web programming, console app programming, or DOS programming.

Since it is difficult to judge when printing "2023" as picture, this coding challenge is limited to "2023" in characters-based output.

This post has been edited by FlierMate: Nov 23 2022, 01:30 AM
angch
post Nov 21 2022, 08:59 AM

On my way
****
Junior Member
635 posts

Joined: Jul 2006
You know https://adventofcode.com/ (one puzzle per day, for 25 days leading to Christmas) for this year is only a few days away? Do the past year challenges while you're at it.

Some of my and other's (from my community) solutions at https://github.com/angch/adventofcode

One line Linux cheat:
CODE
$ banner 2023
#####    ###    #####   #####
#     #  #   #  #     # #     #
     # # #   #       #       #
#####  #  #  #  #####   #####
#       #   # # #             #
#        #   #  #       #     #
#######   ###   #######  #####


user posted image

This post has been edited by angch: Nov 21 2022, 09:04 AM
TSFlierMate
post Nov 21 2022, 04:12 PM

On my way
****
Validating
543 posts

Joined: Nov 2020
@angch, I am not joining, but I am happy you have something to look for next month! Share with us your result.

-----

user posted image

user posted image


This post has been edited by FlierMate: Nov 22 2022, 09:53 PM
15cm
post Nov 28 2022, 01:05 PM

Getting Started
**
Junior Member
294 posts

Joined: Apr 2022
roman numerals is easier

user posted image

so ... what prize do i win?
TSFlierMate
post Nov 28 2022, 03:21 PM

On my way
****
Validating
543 posts

Joined: Nov 2020
QUOTE(15cm @ Nov 28 2022, 01:05 PM)
roman numerals is easier

user posted image

so ... what prize do i win?
*
You got this! Thanks for your participation. rclxs0.gif
user posted image
nyem
post Dec 1 2022, 07:19 PM

Enthusiast
*****
Senior Member
749 posts

Joined: Jan 2007


Random points that spell out 2023 on zoomable map

user posted image
TSFlierMate
post Dec 1 2022, 09:07 PM

On my way
****
Validating
543 posts

Joined: Nov 2020
QUOTE(nyem @ Dec 1 2022, 07:19 PM)
Random points that spell out 2023 on zoomable map

user posted image
*
I am impressed! Did you do it programmatically? Excellent.
M_Shahrul
post Dec 1 2022, 09:50 PM

On my way
****
Senior Member
635 posts

Joined: Apr 2010
From: Kuala Lumpur


QUOTE(nyem @ Dec 1 2022, 07:19 PM)
Random points that spell out 2023 on zoomable map

user posted image
*
Awesome!! How the hell on earth did you do that? biggrin.gif biggrin.gif

 

Change to:
| Lo-Fi Version
0.0221sec    0.55    5 queries    GZIP Disabled
Time is now: 28th March 2024 - 09:58 PM