BOJ - [Basic Algebra - 9085 ๋ํ๊ธฐ] - BronzeIII๐ฅ
https://www.acmicpc.net/problem/9085 ๊ทธ๋ฅ ๊ฐ ์ผ์ด์ค๋ณ๋ก ์ดํฉ๊ตฌํ๋ ๋ฌธ์ . ๋์ด์์ ์ค๋ช ์ ์๋ตํ๋ค.
1๋ถ ์ฝ๊ธฐ
๋ฌธ์
https://www.acmicpc.net/problem/9085
์ค๋ช
๊ทธ๋ฅ ๊ฐ ์ผ์ด์ค๋ณ๋ก ์ดํฉ๊ตฌํ๋ ๋ฌธ์ . ๋์ด์์ ์ค๋ช ์ ์๋ตํ๋ค.
์ฝ๋
#include <stdio.h>
int main() {
int n;
scanf("%d",&n);
for (int i=0; i<n; i++)
{
int case_amount, result=0;
scanf("%d",&case_amount);
for(int j=0; j<case_amount; j++)
{
int temp;
scanf("%d",&temp);
result += temp;
}
printf("%d\n",result);
}
return 0;
}