Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- using namespace std;
- int main()
- {
- int t;
- cin>>t;
- int suma=0,liczba;
- if((t>0)&&(t<100)){
- for(int i=1;i<=t;i++)
- {
- int x;
- cin>>x;
- for(int j=1; j<=x;j++)
- {
- cin>>liczba;
- suma+=liczba;
- }
- cout<<suma;
- suma=0;
- }}
- else
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement