+4
.gitattributes
+4
.gitattributes
+9
.gitignore
+9
.gitignore
-10
2015/16/sue.txt
-10
2015/16/sue.txt
+7
2015/18/rust/Cargo.lock
+7
2015/18/rust/Cargo.lock
+6
2015/18/rust/Cargo.toml
+6
2015/18/rust/Cargo.toml
+90
2015/18/rust/src/main.rs
+90
2015/18/rust/src/main.rs
···
+40
-18
2015/19/rust/src/main.rs
+40
-18
2015/19/rust/src/main.rs
···
+2
-1
2015/2/rust/src/main.rs
+2
-1
2015/2/rust/src/main.rs
+7
2015/20/rust/Cargo.lock
+7
2015/20/rust/Cargo.lock
+6
2015/20/rust/Cargo.toml
+6
2015/20/rust/Cargo.toml
+33
2015/20/rust/src/main.rs
+33
2015/20/rust/src/main.rs
···
+2
-1
2015/4/rust/src/main.rs
+2
-1
2015/4/rust/src/main.rs
-10
2025/1/input_example.txt
-10
2025/1/input_example.txt
+3
-1
2025/1/rust/src/main.rs
+3
-1
2025/1/rust/src/main.rs
···// if it is below zero before being moduloed and the original number itself wasn't zero it means that it did touch zero but the division thing wouldn't count it, so we give this extra support.// of course, there is no need to deal with a negative to positive situation because the acc.turn will never be negative!!!
+2
-88
2025/1/zig/build.zig
+2
-88
2025/1/zig/build.zig
···
+6
-4
2025/2/rust/src/main.rs
+6
-4
2025/2/rust/src/main.rs
······
+20
2025/3/gleam/gleam.toml
+20
2025/3/gleam/gleam.toml
···
+14
2025/3/gleam/manifest.toml
+14
2025/3/gleam/manifest.toml
···+{ name = "filepath", version = "1.1.2", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "filepath", source = "hex", outer_checksum = "B06A9AF0BF10E51401D64B98E4B627F1D2E48C154967DA7AF4D0914780A6D40A" },+{ name = "gleam_stdlib", version = "0.65.0", build_tools = ["gleam"], requirements = [], otp_app = "gleam_stdlib", source = "hex", outer_checksum = "7C69C71D8C493AE11A5184828A77110EB05A7786EBF8B25B36A72F879C3EE107" },+{ name = "gleeunit", version = "1.7.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleeunit", source = "hex", outer_checksum = "CD701726CBCE5588B375D157B4391CFD0F2F134CD12D9B6998A395484DE05C58" },+{ name = "simplifile", version = "2.3.0", build_tools = ["gleam"], requirements = ["filepath", "gleam_stdlib"], otp_app = "simplifile", source = "hex", outer_checksum = "0A868DAC6063D9E983477981839810DC2E553285AB4588B87E3E9C96A7FB4CB4" },
+71
2025/3/gleam/src/main.gleam
+71
2025/3/gleam/src/main.gleam
···+// and here we're going and doing it the amount of times necessary. it's backwards for obvious reasons, we start from the end and this let's us not have like duplicated logic where we're doing digits - i constantly+// it needs to be digits - 1 to zero because otherwise it will cut too much when dropping stuff at list.reverse list.drop(i) list.reverse+// didn't want to create a type for it so yeah #(the digit we're at, the remaining part of the bank)+// that's the part that matters, and the one i took forever in and ended up splitting in multiple variables when i didn't need to+// gleam doesn't let you drop from the end of lists, so we reverse the list, drop the digits we cannot use because they will necessarily be used latter in the number. the last i is the minimum because like we need at the very least finish the number yk+// and then the really annoying part, we turn it into an index map, so we can get the location of the number to later drop that part off for the next digit+// list.take instead of drop would allow me to do it without reversing two times but like it would also need list.length which also goes through the whole list but without letting me put it in just pipes+// i mean i COULD count it once when starting it when then after getting the location subtracting from it but meh already did the rust version and this would put too much stuff on here+// i wasn't using this number trick when i was doing it, i was literally just finding a power of 10 and multiplying it but like the power thing in gleam sucks it's like float only. i now learned this trick from *someone* and will be using it. don't know how i didn't figure out myself. oh wait i do it's because i'm stupid+// but yeah it just multiplies the number by ten so like 4 becomes 40 and then we add our like 3 to it 43 and then 43 to 430 and the 5 you get the gist of it. again don't know how i didn't see it myself+// and then we drop the parts of the list that can't be used for the subsequent numbers. like off by one evil thing in here to not include the number we just used too+// why don't we add 1 to everything in the thing above? because that would be more math than just adding it only once here duh+// just get all the battery banks, separate them by character and turn each character in a member of a list+// and here we unwrap because only let's you do it with variables and that would be less clean here
+7
2025/3/rust/Cargo.lock
+7
2025/3/rust/Cargo.lock
+6
2025/3/rust/Cargo.toml
+6
2025/3/rust/Cargo.toml
+38
2025/3/rust/src/main.rs
+38
2025/3/rust/src/main.rs
···+// fun fact for this version, my biggest bug was integer overflow when i was using u32 because im not accustumed to this shit+// apparently the compiler is fine with reversing this and then using the standard max_by but im not. and it seems to have the same speed results. im not gonna be using tricks here ok im nice
+20
2025/4/gleam/gleam.toml
+20
2025/4/gleam/gleam.toml
···
+14
2025/4/gleam/manifest.toml
+14
2025/4/gleam/manifest.toml
···+{ name = "filepath", version = "1.1.2", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "filepath", source = "hex", outer_checksum = "B06A9AF0BF10E51401D64B98E4B627F1D2E48C154967DA7AF4D0914780A6D40A" },+{ name = "gleam_stdlib", version = "0.65.0", build_tools = ["gleam"], requirements = [], otp_app = "gleam_stdlib", source = "hex", outer_checksum = "7C69C71D8C493AE11A5184828A77110EB05A7786EBF8B25B36A72F879C3EE107" },+{ name = "gleeunit", version = "1.7.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleeunit", source = "hex", outer_checksum = "CD701726CBCE5588B375D157B4391CFD0F2F134CD12D9B6998A395484DE05C58" },+{ name = "simplifile", version = "2.3.0", build_tools = ["gleam"], requirements = ["filepath", "gleam_stdlib"], otp_app = "simplifile", source = "hex", outer_checksum = "0A868DAC6063D9E983477981839810DC2E553285AB4588B87E3E9C96A7FB4CB4" },
+96
2025/4/gleam/src/main.gleam
+96
2025/4/gleam/src/main.gleam
···
+7
2025/4/rust/Cargo.lock
+7
2025/4/rust/Cargo.lock
+6
2025/4/rust/Cargo.toml
+6
2025/4/rust/Cargo.toml
+106
2025/4/rust/src/main.rs
+106
2025/4/rust/src/main.rs
···
+20
2025/5/gleam/gleam.toml
+20
2025/5/gleam/gleam.toml
···
+14
2025/5/gleam/manifest.toml
+14
2025/5/gleam/manifest.toml
···+{ name = "filepath", version = "1.1.2", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "filepath", source = "hex", outer_checksum = "B06A9AF0BF10E51401D64B98E4B627F1D2E48C154967DA7AF4D0914780A6D40A" },+{ name = "gleam_stdlib", version = "0.65.0", build_tools = ["gleam"], requirements = [], otp_app = "gleam_stdlib", source = "hex", outer_checksum = "7C69C71D8C493AE11A5184828A77110EB05A7786EBF8B25B36A72F879C3EE107" },+{ name = "gleeunit", version = "1.7.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleeunit", source = "hex", outer_checksum = "CD701726CBCE5588B375D157B4391CFD0F2F134CD12D9B6998A395484DE05C58" },+{ name = "simplifile", version = "2.3.0", build_tools = ["gleam"], requirements = ["filepath", "gleam_stdlib"], otp_app = "simplifile", source = "hex", outer_checksum = "0A868DAC6063D9E983477981839810DC2E553285AB4588B87E3E9C96A7FB4CB4" },
+117
2025/5/gleam/src/main.gleam
+117
2025/5/gleam/src/main.gleam
···+// btw im refusing to ever do something better than this idc about your sorting and whatever this is the way shut the fuck up i spent three hours on this i will be using it
+7
2025/5/rust/Cargo.lock
+7
2025/5/rust/Cargo.lock
+6
2025/5/rust/Cargo.toml
+6
2025/5/rust/Cargo.toml
+75
2025/5/rust/src/main.rs
+75
2025/5/rust/src/main.rs
···+// btw im refusing to ever do something better than this idc about your sorting and whatever this is the way shut the fuck up i spent three hours on this i will be using it
+20
2025/6/gleam/gleam.toml
+20
2025/6/gleam/gleam.toml
···
+14
2025/6/gleam/manifest.toml
+14
2025/6/gleam/manifest.toml
···+{ name = "filepath", version = "1.1.2", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "filepath", source = "hex", outer_checksum = "B06A9AF0BF10E51401D64B98E4B627F1D2E48C154967DA7AF4D0914780A6D40A" },+{ name = "gleam_stdlib", version = "0.65.0", build_tools = ["gleam"], requirements = [], otp_app = "gleam_stdlib", source = "hex", outer_checksum = "7C69C71D8C493AE11A5184828A77110EB05A7786EBF8B25B36A72F879C3EE107" },+{ name = "gleeunit", version = "1.7.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleeunit", source = "hex", outer_checksum = "CD701726CBCE5588B375D157B4391CFD0F2F134CD12D9B6998A395484DE05C58" },+{ name = "simplifile", version = "2.3.0", build_tools = ["gleam"], requirements = ["filepath", "gleam_stdlib"], otp_app = "simplifile", source = "hex", outer_checksum = "0A868DAC6063D9E983477981839810DC2E553285AB4588B87E3E9C96A7FB4CB4" },
+140
2025/6/gleam/src/main.gleam
+140
2025/6/gleam/src/main.gleam
···
+20
2025/7/gleam/gleam.toml
+20
2025/7/gleam/gleam.toml
···
+14
2025/7/gleam/manifest.toml
+14
2025/7/gleam/manifest.toml
···+{ name = "filepath", version = "1.1.2", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "filepath", source = "hex", outer_checksum = "B06A9AF0BF10E51401D64B98E4B627F1D2E48C154967DA7AF4D0914780A6D40A" },+{ name = "gleam_stdlib", version = "0.65.0", build_tools = ["gleam"], requirements = [], otp_app = "gleam_stdlib", source = "hex", outer_checksum = "7C69C71D8C493AE11A5184828A77110EB05A7786EBF8B25B36A72F879C3EE107" },+{ name = "gleeunit", version = "1.7.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleeunit", source = "hex", outer_checksum = "CD701726CBCE5588B375D157B4391CFD0F2F134CD12D9B6998A395484DE05C58" },+{ name = "simplifile", version = "2.3.0", build_tools = ["gleam"], requirements = ["filepath", "gleam_stdlib"], otp_app = "simplifile", source = "hex", outer_checksum = "0A868DAC6063D9E983477981839810DC2E553285AB4588B87E3E9C96A7FB4CB4" },
+93
2025/7/gleam/src/main.gleam
+93
2025/7/gleam/src/main.gleam
···
+7
2025/7/rust/Cargo.lock
+7
2025/7/rust/Cargo.lock
+6
2025/7/rust/Cargo.toml
+6
2025/7/rust/Cargo.toml
+62
2025/7/rust/src/main.rs
+62
2025/7/rust/src/main.rs
···
+1
-1
template/rust/src/main.rs
+1
-1
template/rust/src/main.rs
+2
-88
template/zig/build.zig
+2
-88
template/zig/build.zig
···