Skip to content

Commit

Permalink
type hinting
Browse files Browse the repository at this point in the history
  • Loading branch information
LivInTheLookingGlass committed Sep 9, 2024
1 parent 06f98c2 commit 0c3a0ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust/src/problems/p0028.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ use crate::include::utils::Answer;

pub fn p0028() -> Answer {
let mut answer: u32 = 1;
for i in 1..(1002 / 2) {
for i in 1..(1002u32 / 2) {
let start = (2 * i - 1).pow(2) + 1;
answer += range_entry3(start, 1, 1 * 2 * i - 1) +
range_entry3(start, 1, 2 * 2 * i - 1) +
Expand Down

0 comments on commit 0c3a0ce

Please sign in to comment.