티스토리 뷰
728x90
문제 링크
https://www.acmicpc.net/problem/1000
A와 B를 받고 A+B를 출력하자.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
int a, b; | |
int main(){ | |
cin >> a >> b; | |
cout << a + b; | |
} |
추가 - 숏코딩
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
main(n){gets(&n);printf("%d",n%85-43);} |
728x90
'알고리즘 > 문제 풀이' 카테고리의 다른 글
[BOJ] 백준 1004 어린 왕자 (0) | 2018.06.28 |
---|---|
[BOJ] 백준 1003 피보나치 함수 (0) | 2018.06.28 |
[BOJ] 백준 2747 피보나치 수 (0) | 2018.06.28 |
[BOJ] 백준 1002 터렛 (0) | 2018.06.27 |
[BOJ] 백준 1001 A - B (0) | 2018.06.27 |
댓글