1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//! # Day 12: JSAbacusFramework.io
//!
//! Santa's Accounting-Elves need help balancing the books after a recent order. Unfortunately,
//! their accounting software uses a peculiar storage format. That's where you come in.
//!
//! They have a [JSON] document which contains a variety of things: arrays (`[1,2,3]`), objects
//! (`{"a":1, "b":2}`), numbers, and strings. Your first job is to simply find all of the
//! **numbers** throughout the document and add them together.
//!
//! For example:
//!
//! - `[1,2,3]` and `{"a":2,"b":4}` both have a sum of `6`.
//! - `[[[3]]]` and `{"a":{"b":4},"c":-1}` both have a sum of `3`.
//! - `{"a":[-1,1]}` and `[-1,{"a":1}]` both have a sum of `0`.
//! - `[]` and `{}` both have a sum of `0`.
//!
//! You will not encounter any strings containing numbers.
//!
//! What is the **sum of all numbers** in the document?
//!
//! [JSON]: http://json.org/

use anyhow::Result;

pub const INPUT: &str = include_str!("d12.txt");

pub fn solve_part_one(input: &str) -> Result<i64> {
    Ok(0)
}

pub fn solve_part_two(input: &str) -> Result<i64> {
    Ok(0)
}

#[cfg(test)]
mod tests {
    use super::*;

    #[test]
    fn part_one() {}

    #[test]
    fn part_two() {}
}