전체 글 - Table of Contents332 ★Math & Geometry Upper-Beginner II - 19 Solved★ ★ 15818 오버플로우와 모듈러 ★import sysinput=sys.stdin.readlineN,M=map(int,input().split())nums=list(map(int,input().split()))ans=1for num in nums: ans*=(num%M)print(ans%M) 🤙 매우 큰 수에의 나머지를 구하는 건 큰 수 자체에 오버플로우 발생 가능성이 존재. 🤙 따라서 모듈러 연산을 활용! (A*B)%X = ((A%X)*(B%X))%X → 연산도중도중 곱해지는 수의 모듈러 결과를 구해 큰 수가 나오지 않게 과정 도중에 방지★ 16483 접시 안의 원 ★ print(round((int(input())/2)**2)) 🤙 아래의 그림으로 한 번에 설명된다★ 22938 백발백준하는 .. BOJ/🥉 2023. 4. 6. HTML Fundamentals 1/ 1. HTML Intro ① HTML stands for Hyper Text Markup Language ② HTML is the standard markup language for creating Web pages ③ HTML describes the structure of a Web page ④ HTML consists of a series of elements ⑤ HTML elements tell the browser how to display the content ⑥ HTML elements label pieces of content such as "this is a heading", "this is a paragraph", "this is a link", etc. ⑦ HTML is not cas.. Front-end/HTML,CSS,JavaScript 2023. 3. 29. Web Hosting What is Web Hosting? Web hosting is an online service that allows you to publish your website files onto the internet. So, anyone who has access to the internet has access to your website. Hosting = 'home of your web site', if you want a website, you'll need somewhere to host it hosting is a infrastructure, computer that keeps your website available across the internet Web Server(Web Host) Web S.. Front-end/Internet 2023. 3. 27. Domain Name What is a Domain Name? A domain name is a unique, easy-to-remember address used to access websites, such as ‘google.com’, and ‘facebook.com’. Users can connect to websites using domain names thanks to the Domain Name System (DNS). Domain names are a key part of the Internet infrastructure. They provide a human-readable address for any web server available on the Internet. Any Internet-connected .. Front-end/Internet 2023. 3. 27. DNS(Domain Name System) 1. What is DNS? 🤠 The Domain Name System (DNS) is the phonebook of the Internet. Humans access information online through domain names, like nytimes.com or espn.com. Web browsers interact through Internet Protocol (IP) addresses. DNS translates domain names to IP addresses so browsers can load Internet resources. (When you enter a domain name into your web browser, your computer sends a DNS quer.. Front-end/Internet 2023. 3. 22. HTTP(수정중) 1. What is HTTP? HTTP is a TCP/IP - based application layer communication protocol that standardizes how clients and servers communicate with each other. It defines how content is requested and transmitted across the internet. By application layer protocol, I mean that it's simply an abstraction layer that standardizes how hosts (clients and servers) communicate. HTTP itself depends on TCP/IP to.. Front-end/Internet 2023. 3. 20. ★Divide & Conquer Upper-Intermediate I - 9 Solved★ ★ 2630 색종이 만들기 ★import sysinput=sys.stdin.readlineN=int(input())W,B=0,0confetti=[]def is_check(arr): side=len(arr) if all(arr[i][j] == 0 for i in range(side) for j in range(side)): return 'W' elif all(arr[i][j] == 1 for i in range(side) for j in range(side)): return 'B' else: return 0def get_confetti(arr,l,W,B): if l == 1: if arr[0][0] == 0: W+=1 .. BOJ/🥈 2023. 3. 20. Packets & Protocols ※ Internet Introduction ※ The Internet Explained 1. What is the internet? The internet is the world’s most popular computer network. It began as an academic research project in 1969, and became a global commercial network in the 1990s. Today it is used by more than 2 billion people around the world. Th sh-avid-learner.tistory.com 1. What is a packet? & protocols? ① packet A packet is the basic u.. Front-end/Internet 2023. 3. 14. The Internet Explained 1. What is the internet? The internet is the world’s most popular computer network. It began as an academic research project in 1969, and became a global commercial network in the 1990s. Today it is used by more than 2 billion people around the world. The internet is notable for its decentralization. No one owns the internet or controls who can connect to it. Instead, thousands of different orga.. Front-end/Internet 2023. 3. 14. ★Number Theory Upper-Intermediate I - 9 Solved★ ★ 1850 최대공약수 ★import mathA,B = map(int, input().split())ans = ''.join(['1']*math.gcd(A,B))print(ans) 👑 1의 개수 A와 B의 최대공약수만큼 1이 나열되어 있는 수가 최대공약수. 최대공약수 성질 / 유클리드 호제법을 사용해 이를 증명해보자 ※ 1이 a개 있는 수와 1이 b개 있는 수의 최대공약수는 1이 gcd(a,b)개 있는 수 (a≥b)※ - 증명 - → 1이 a개 있는 수를 $S_a$, 1이 b개 있는 수를 $S_b$라고 하면$$S_a = \underbrace{111 ... 111}$$(1이 a개)$$S_b = \underbrace{111 ... 111}$$(1이 b개) → 아래와 같이 10의 지수승으로 나열할 수 있다... BOJ/🥈 2023. 2. 28. Probability fundamentals 🧜♀️ 확률은 반드시 알아야 하는 기초 개념! 기초 개념을 확실히 알자! * 용어 정리 🧜♀️ 확률 'the measure of the likelihood that an event will occur' 🧜♀️ 시행(experiment, trial) → 확률에서의 '시행'은 일반적으로 무작위 시행을 의미하여, 이는 동일한 조건에서 반복 수행 가능, 그 결과를 사전에 알 수 없는 행동 (ex) 동전과 주사위를 던지는 것) → 시행은 표본공간이라는 집합(set)으로 표현 🧜♀️ 표본공간(Sample space) → 어떠한 시행에서 일어날 수 있는 모든 발생 가능한 결과의 집합 ex) 주사위를 한 번 던지는 시행의 표본 공간 = {1, 2, 3, 4, 5, 6} → 각 원소(element)는 시행의 특정.. Math & Linear Algebra/Concepts 2023. 2. 27. 중국인의 나머지 정리(CRT;Chinese Remainder Theorem) 🙆🏽♀️ 언젠가 한 번은 정확히 정리하고, 숙지해야 할 알고리즘 '중국인의 나머지 정리' 🙆🏽♀️ 이론을 정확히 알고, 여러 수학 문제에 적용해 복잡한 문제를 쉽게 풀어보자 합동식 🙆🏽♀️ 대수학에서 합동인 두 수는, 어떤 수로 나누었을 때 나머지가 같은 두 수를 뜻한다. → ex) 예를 들어 12와 26은 7로 나누었을 때 나머지가 5이므로 아래와 같은 기호로 쓸 수 있다. $$12\equiv 26\;(mod\;7)$$ 🙆🏽♀️ 즉, a를 p로 나눈 나머지와 b를 p로 나눈 나머지가 같다면, $$a\equiv b\;(mod\;p)$$ 🙆🏽♀️ 이를 식으로 표현한다면, $a=pn+b$ * 합동식의 성질 ① 덧셈은 언제나 성립 (동일한 수를 더하면 동일한 수의 나머지는 당연히 동일하므로 성립) $.. Computer Science/Algorithms 2023. 2. 26. 이전 1 ··· 7 8 9 10 11 12 13 ··· 28 다음