본문 바로가기

분류 전체보기133

[NCP] 서버 접속방법(using Mobaxterm) 1. server 서비스 접속 2. 비밀번호 찾기 3. 인증키 넣기 : 서버 생성시 받은 pem 키 4. 관리자 비밀번호 확인 5. mobaxterm 접속 6. Session 선택 7. Remote host 공인 IP 입력, Advanced SSH Seetings pem 키 넣기 8. [선택] Bookmark Settings : Session name 선택 (메인 화면에 뜨는 이름 ) 9. 접속 (상위의 아이디, 비밀번호와 같이) 10. 접속완료 2022. 9. 30.
[easy] Python if-Else (with Python) *Task* Given an integer, N, perform the following conditional actions: If N is odd, print Weird If N is even and in the inclusive range of 2 to 5 , print Not Weird If N is even and in the inclusive range of 6 to 20, print Weird If N is even and greater than 20, print Not Weird *Input Format* A single line containing a positive integer, N *Output Format* 더보기 #!/bin/python3 import math import os i.. 2022. 9. 30.
[easy] The World of Numbers(with shell) *problem* Given two integers, and , find their sum, difference, product, and quotient. *Input Format* Two lines containing one integer each ( and , respectively). *Output Format* Four lines containing the sum (), difference (), product (), and quotient (), respectively. (While computing the quotient, print only the integer part.) *Answer* 더보기 read x; read y; echo "$((x+y))"; echo "$((x-y))"; ech.. 2022. 9. 29.
[easy]Looping with Numbers(with shell) *problem* Use a for loop to display the natural numbers from to . *Input Format* There is no input *Output Format* *Answer" 더보기 2022. 9. 29.
[easy]A personalized Echo (with shell) *Problem* Write a Bash script which accepts as input and displays the greeting "Welcome (name)" *Input Format* There is one line of text, . *Output Format* One line: "Welcome (name)" (quotation marks excluded). The evaluation will be case-sensitive. *Answer* 더보기 - read는 표준 입력(파이프라인 입력 또는 키보드 입력)에서 한 줄의 내용씩 읽어 들이는 명령어 2022. 9. 29.
[easy]Looping and Skipping (with Shell) *Problem* Your task is to use for loops to display only odd natural numbers from to . *Input Format* There is no input. *Output Format* *정답* 더보기 2022. 9. 29.