use std::io::{self, *}; #[derive(PartialEq, Eq, Debug, Clone)] pub struct ListNode { pub val: i32, pub next: Option<Box<ListNode>>, } impl ListNode { #[inline] fn new(val: i32) -> Self { ListNode { val: val, next: None, } }...