1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | #include<cstdio> #include<iostream> using namespace std; int main(void) { cin.tie(NULL); ios_base::sync_with_stdio(false); int t,a,b; cin>>t; for (int i=0; i<t; i++){ cin>>a>>b; cout<<a+b<<'\n'; } return 0; } | cs |
1 2 3 4 5 6 7 8 9 10 11 12 13 | #include<stdio.h> int main(void) { int t,a,b,i; scanf("%d", &t); for (i=0; i<t; i++){ scanf("%d %d", &a, &b); printf("%d\n", a+b); } return 0; } | cs |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | #include<cstdio> #include<iostream> using namespace std; int main(void) { int t,a,b; scanf("%d", &t); for (int i=0; i<t; i++){ scanf("%d %d", &a, &b); printf("%d\n", a+b); } return 0; } | cs |
'백준 1 > 수학' 카테고리의 다른 글
| [백준 10867] 중복 빼고 정렬하기 (0) | 2020.12.05 |
|---|---|
| [백준 11004] k번째 수 (0) | 2020.12.05 |
| [백준 1065] 한수 (0) | 2020.12.05 |
| [백준 11816] 8진수, 10진수, 16진수 (0) | 2020.12.05 |
| [백준 1003] 피보나치 함수 (0) | 2020.12.05 |