图片.png
#include<stdio.h>
#include<iostream>
using namespace std;
int main()
{
int a,b,sumA=0,sumB=0;
cin >> a;
while(a!=0){
sumA += a;
cin >> b;
sumB += b;
cin >> a;
}
printf("A(0,%d),B(0,0),C(%d,0)",sumA,sumB);
return 0;
}
网友评论