Skip to content

Files

Latest commit

 

History

History

10-c

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Day 10 solution in C

Screencast

screencast

Tested on

$ clang --version
clang version 7.0.1-8+deb10u2 (tags/RELEASE_701/final)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
$ gcc --version
gcc (Debian 8.3.0-6) 8.3.0
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Expected Result

Input file: input.txt
Part 1: 2368
Part 2: 1727094849536

Quick Start

  • install GCC or Clang and make sure gcc or clang are available in $PATH
  • $ CC=gcc make in case of GCC
  • $ CC=clang make in case of Clang