2 / 2
Jan 2019

#include

using namespace std;

int testy;
int n, liczba, suma=0;

int main()
{
cin>>testy;
for (int i=0; i<testy; i++)
{
cin>>n;
for(int x=0;x<n;x++)
{
cin>>liczba;
suma+=liczba;
}
cout<<suma<<endl;
}

return 0;

}

  • created

    Jan '19
  • last reply

    Jan '19
  • 1

    reply

  • 796

    views

  • 2

    users

  • 2

    links