delete pics to save space
This commit is contained in:
19
history_source/信息学奥赛一本通/1.4.1.6.cpp
Normal file
19
history_source/信息学奥赛一本通/1.4.1.6.cpp
Normal file
@ -0,0 +1,19 @@
|
||||
#include<cstdio>
|
||||
using namespace std;
|
||||
int main()
|
||||
{
|
||||
int n,j=0,y=0,t=0,x;
|
||||
scanf("%d",&n);
|
||||
for(int i=0;i<n;i++)
|
||||
{
|
||||
scanf("%d",&x);
|
||||
j+=x;
|
||||
scanf("%d",&x);
|
||||
y+=x;
|
||||
scanf("%d",&x);
|
||||
t+=x;
|
||||
}
|
||||
printf("%d %d %d %d\n",j,y,t,j+y+t);
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user