G题:https://blog.nowcoder.net/n/bc0374284fed47d49037ae55f824ef2b K题:https://blog.nowcoder.net/n/c7d014729ffc4131983f56b2873a6181 J题:https://ac.nowcoder.com/discuss/411541