반응형
파이썬
1
2
3
4
5
6
7
|
import sys
case_num = int(input())
for i in range(1,case_num+1):
now = str(input())
one = int(now.split(" ")[0])
two = int(now.split(" ")[1])
print("Case #"+str(i)+": "+str(one+two))
|
cs |
C언어
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#include <stdio.h>
int main(void)
{
int how_many;
scanf("%d",&how_many);
for(int i=0;i<how_many;i++){
int num1;
int num2;
scanf("%d %d", &num1,&num2);
printf("Case #%d: %d\n",i+1,num1+num2);
// printf();
}
return 0;
}
|
cs |
우리 모두 잘 될겁니다!
Be positive!
Be rich!
Live your life!
반응형
'Programming' 카테고리의 다른 글
현대_Softeer_level2_8단 변속기_파이썬 (0) | 2023.01.17 |
---|---|
현대_Softeer_level2_금고털이_파이썬 (0) | 2023.01.17 |
현대_Softeer_level1_근무 시간_파이썬_C언어 (0) | 2023.01.17 |
현대_Softeer_level1_주행거리 비교하기_파이썬_C언어 (0) | 2023.01.17 |
백준_괄호 추가하기(#16637)_파이썬(python)_ 삼성기출 (0) | 2021.09.23 |