Coding test/백준

    백준 11650번 Python

    n = int(input()) x = [] for i in range(n): a, b = map(int, input().split()) x.append((a, b)) x.sort() for i in range(n): print(x[i][0], x[i][1])

    백준 14681번 C++

    백준 14681번 C++

    #include using namespace std; int main(){ int a,b; cin>>a; cin>>b; if((a>=-1000&&a=-1000&&b0&&b>0){ cout

    백준 15596번 Python

    백준 15596번 Python

    def solve(a): ans = sum(a) return ans

    백준 18258번 Python

    백준 18258번 Python

    import sys from collections import deque n = int(sys.stdin.readline().rstrip()) queue =deque([]) for i in range(n): ans = sys.stdin.readline().rstrip().split() if ans[0]=='push': queue.append(ans[1]) if ans[0]=='pop': if len(queue): print(queue.popleft()) else: print(-1) if ans[0]=='size': print(len(queue)) if ans[0]=='empty': if len(queue): print(0) else: print(1) if ans[0]=='front': if len(que..

    백준 25304번 Python

    백준 25304번 Python

    all = int(input()) num = int(input()) for i in range(num): price, n = map(int, input().split()) all-=price * n if all == 0: print('Yes') else: print('No')