摘要: // raw res == 0 ? 0 : (res < 0 ? -1 : 1) // from chat-gpt int compareSign(int A) { return (A > 0) - (A < 0); } // int compareSign(int A) { return (A > 阅读全文
posted @ 2024-03-04 17:27 stdpain 阅读(10) 评论(0) 推荐(0) 编辑