其实cpp好做的,cin>>str,头尾括号去掉,然后用str.find(',')把逗号改空格,最后stringstream一个一个读入数字就可以了
4 1

相关推荐

点赞 评论 收藏
分享
牛客网
牛客网在线编程
牛客网题解
牛客企业服务