傲渊山岳 发表于 2022-8-9 14:45:26

【题解】Educational Codeforces Round 2

因为计算几何题不会所以就没有
A.Extract Numbers

题目描述

原题面
题目分析

注意到所有的单词通过 , 或 ; 分割,可能会有空的单词。我感觉比较好的写法是把每个单词提取出来,对于两种字符串分别搞两个 vector 然后插入就好了。字符串模拟也没啥说的
代码详解

点击查看代码#includeusing namespace std;string s;vector a,b;int main(){        cin>>s;        s = s + ',';        for(int i=0; i= 1){                cout
页: [1]
查看完整版本: 【题解】Educational Codeforces Round 2