projects
/
advent_of_code_2023.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
First day
[advent_of_code_2023.git]
/
src
/
days.rs
1
use
std
::
fs
;
2
3
use crate
::*;
4
5
pub fn
day01
() ->
String
{
6
let
input
=
fs
::
read_to_string
(
"data/day01.input"
).
unwrap
();
7
let
lines
=
day01
::
parse
(&
input
);
8
format!
(
9
"part1:
{}
, part2:
{}
"
,
10
day01
::
calibration_sum
(&
lines
),
11
day01
::
calibration_sum_corrected
(&
lines
)
12
)
13
}