![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
在线编程OnLine
阿呆不爱说话
学生
展开
-
ACM模式 常见输入输出格式【数组】
第一类输入一组数,用逗号‘ ,’隔开,确定n组数据1,2,3,4,5,6,70,2,3,4,5,7,3存入数组w,v#include <bits/stdc++.h>using namespace std;int main(){ vector<int> w; vector<int> v; string s1,s2; cin>>s1; cin>>s2; string tmp;原创 2021-06-18 16:55:28 · 4299 阅读 · 0 评论 -
OJ在线编程常见输入输出练习
OJ在线编程常见输入输出练习第一题a+b输入包括两个正整数a,b(1 <= a, b <= 10^9),输入数据包括多组输出a+b的结果输入1 510 20输出630#include <bits/stdc++.h>using namespace std;int main(){ int a,b; while(cin>>a>>b) cout<<a+b<<endl; ret原创 2021-04-16 23:28:40 · 316 阅读 · 0 评论