1 2 3 4 5 6 7 8 9 10 11 12
struct Solution; impl Solution { fn can_win_nim(n: i32) -> bool { n % 4 != 0 } } #[test] fn test() { assert_eq!(Solution::can_win_nim(4), false); }