摘要: 牛客模拟 by Hehe_0 A :游游的整数反转 题意即反转前k位,字符串翻转,直接获取长度然后反转就行,另:$ reverse $ 字符反转函数:.begin() , .end() int l=x.size(); for(int i=k-1; i>=0; i--) cout<<x[i]; for 阅读全文
posted @ 2025-03-22 18:28 Hehe_o 阅读(206) 评论(0) 推荐(0)