전체 글(48)
-
수학 알고리즘 01 - 유클리드 호제법 (최대공약수, 최소공배수)
서론라이브러리 사용이 자유롭다는 가정하에, 최대공약수 및 최소공배수는 아래와 같이 구할 수 있다. [C++]#include #include using namespace std;void solution(int a, int b) { print("최대공약수: %d", gcd(a, b)); print("최소공배수: %d", lcm(a, b));} [Python]import matha, b = map(int, input().split())print(math.gcd(a, b))print(math.lcm(a, b))라이브러리와 내장함수 gcd(), lcm()을 외워가는 것만으로 쉽게 풀 수 있다. 다만, 우리의 목표는 내장함수 잘 쓰기가 아닌 코딩테스트 대비 + CS 면접 대비이므로 이론에 대해 공부해 보자. 이..
2026.09.03 -
코딩 테스트용 VS Code C++ 설정 방법
아래의 단계를 따라하면, input.txt를 입력값으로 받아 출력하도록 자동 설정 가능.1주일 단위로 환경 설정을 다시해야하는 SSAFY 교육생들에게 유용하리라 생각. 다만, VS Code는 이미 설치되어 있어야 함. 1. VS Code Extensions 설치두가지 Extension만 설치하면 됌. 참고로 Extensions를 못찾겠으면 좌측 사이드바에서 블럭모양 클릭. 2. VS Code 내 User Setting 수정먼저, ctrl + shift + p 누른 후Open User Settings 검색하여 Preferences: Open User Settings (JSON) 선택. 가장 아래쪽에 아래의 코드 복붙."code-runner.fileDirectoryAsCwd": true,"code-runne..
2026.09.02 -
01. 암호학 개요 및 고전 암호 (Classical Cipher)
01. 암호학 개요암호화와 복호화 과정 요약평문 → 암호화 알고리즘 → 암호문 → 복호화 알고리즘 → 평문암호 관련 주요 키워드1. 암호학 (Cryptology) - 암호 기법 (Cryptography) - 암호 해독 (Cryptanalysis)2. 평문 (Plaintext)3. 암호문 (Ciphertext)4. 암호화 (Encryption)5. 복호화 (Decryption)주요 암호화 기법 (파랑 : 정처기/정보기 공통, 빨강 : 정보기)주의 : 각 암호화 기법은 같이 사용될 수도 있음 (예: 단일 문자 치환 + 전치)구분유형세부 유형대표 알고리즘설명고전치환(Substitution Cipher)단일 문자 치환(Monoalphabetic Substitution)카이사르 암호(Caesar Cipher)..
2026.08.24 -
[BBC 번역] - 3화 : Astronauts aboard Artemis II homebound after historic and record-breaking moon mission
[Newsreader - Catherine Byaruhanga]President Trump has spoken to the crew of the Artemis II and heaped praise on their achievements. He said they had made history and made America proud. The NASA moon mission is moving back to Earth, after completing its flyby of the far side of the moon. The four astronauts were out of contact with ground control for about forty minutes, as they flew around par..
2026.04.08 -
[BBC 번역] - 2화 : Strait of Hormuz remains effectively closed despite Trump's threats to Iran
[Announcer]Despite president Trump's abusive threats, the strait of Hormuz remains effectively closed by Iran. That's having a major impact on the global economy as it's a vital corridor for oil, gas, and a huge range of other materials. Some of them critical for food production and medicine. Orla Guerin reports now from off the coast of Oman, near the entrance to the strait, Where many cargo ve..
2026.04.07 -
[BBC 번역] - 1화 : Artemis II crew see first glimpse of far side of Moon
[Announcer]The four astronauts of Artemis II are more than halfway on their jouney to the moon, and the crew says they have now caught a first glimpse of the far side of the moon, but it hasn't all been plain sailing. A very human problem has stolen some of attention. Because the mission's toilet apparently isn't working properly. Rebecca Morelle has more from NASA headquarters in Houston. [Nara..
2026.04.05