#include <iostream> #include <fstream> #include <deque> #include <cstdlib> #include <string> #include <string.h> #include <cmath> #include <algorithm> #include <iterator> #include <numeric> #include <sstream> using namespace std; int main() { //freopen("新建文本文档.txt","r",stdin); int n; int x,y; int s=0,z=0; cin>>n; for(int i=0;i<n;i++) { cin>>x>>y; s+=x; z+=y; } cout<<s<<"+"<<z<<"i"<<endl; return 0; }
解题思路:
注意事项:
参考代码:
0.0分
0 人评分
钟神赛车 (C语言代码)浏览:877 |
C语言程序设计教程(第三版)课后习题7.3 (C语言代码)浏览:1195 |
C语言程序设计教程(第三版)课后习题1.5 (C语言代码)浏览:601 |
WU-整除问题 (C++代码)浏览:612 |
【计算两点间的距离】 (C语言代码)浏览:1482 |
IP判断 (C语言代码)浏览:533 |
矩形面积交 (C语言代码)浏览:1304 |
C语言程序设计教程(第三版)课后习题6.7 (C语言代码)浏览:672 |
矩阵的对角线之和 (C语言代码)浏览:1350 |
C语言程序设计教程(第三版)课后习题7.4 (C语言代码)浏览:501 |