-
Notifications
You must be signed in to change notification settings - Fork 0
/
day5.rs
37 lines (30 loc) · 786 Bytes
/
day5.rs
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
/*
Advent of code day 5
ABCDE
1002
DE - two-digit opcode, 02 == opcode 2
C - mode of 1st parameter, 0 == position mode
B - mode of 2nd parameter, 1 == immediate mode
A - mode of 3rd parameter, 0 == position mode,
omitted due to being a leading zero
*/
fn main() {
let input = "DE - two-digit opcode, 02 == opcode 2
C - mode of 1st parameter, 0 == position mode
B - mode of 2nd parameter, 1 == immediate mode
A - mode of 3rd parameter, 0 == position mode";
println!("Greetings!. Here is the input content for the problem of Advent of code day 5:
{}", input);
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn test_true() {
assert!(true);
}
#[test]
fn test_equal() {
assert_eq!(true, true);
}
}