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

相关推荐

牛客网
牛客企业服务