From 850e41af2ddaaf5bf95b1b099346105d846fcdfc Mon Sep 17 00:00:00 2001 From: Suguivy Date: Fri, 2 Dec 2022 14:52:25 +0100 Subject: [PATCH] fix error --- day02/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/day02/src/main.rs b/day02/src/main.rs index 3f22e2a..54d9b83 100644 --- a/day02/src/main.rs +++ b/day02/src/main.rs @@ -24,7 +24,7 @@ fn get_true_round(a: &str, b: &str) -> i32 { "C" => 3, _ => panic!("WTF") }; - ((b/3+2)+a)%3+b + ((b/3+2)+a-1)%3+1+b } fn get_round(a: &str, b: &str) -> i32 {