BOJ | 1001번

송치헌·2021년 5월 26일
0
post-thumbnail

Python 풀이

A, B = input().split()
print(int(A)-int(B))

1000번과 풀이가 동일하다. 단 +에서 -로 바뀌었을뿐.

C++ 풀이

#include <iostream>

using namespace std;

int main(){
    int A;
    int B;
    cin >> A >> B;
    cout<<A-B;
    return 0;
}

이 친구도 마찬가지로 1000번과 풀이는 동일!

profile
https://oraange.tistory.com/ 여기에도 많이 놀러와 주세요

0개의 댓글