본문 바로가기

Iriton's log

검색하기
Iriton's log
프로필사진 Iriton

  • 분류 전체보기 (184)
    • Security Lab (5)
      • CVE (0)
    • WebHacking (65)
      • WarGame (65)
    • Reversing (19)
      • Wargame (17)
      • Study (2)
    • Pwnable (21)
      • Wargame (7)
      • Study (14)
    • Cloud (6)
      • Study (6)
    • AI (1)
      • Practice (1)
    • Forensic (18)
      • WarGame (8)
      • Study (10)
    • DataBase (4)
      • Study (4)
    • Data Analysis (1)
      • Study (1)
    • Frontend (7)
      • Study (7)
    • Algorithm (2)
    • Problem Solving (33)
      • C,C++ (18)
      • Python (11)
      • Java (4)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/10   »
일 월 화 수 목 금 토
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
Tags
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록Problem Solving (33)

Iriton's log

[Python/Baekjoon] 10430번: 나머지

문제 (A+B)%C는 ((A%C) + (B%C))%C 와 같을까? (A×B)%C는 ((A%C) × (B%C))%C 와 같을까? 세 수 A, B, C가 주어졌을 때, 위의 네 가지 값을 구하는 프로그램을 작성하시오. 입력 첫째 줄에 A, B, C가 순서대로 주어진다. (2 ≤ A, B, C ≤ 10000) 출력 첫째 줄에 (A+B)%C, 둘째 줄에 ((A%C) + (B%C))%C, 셋째 줄에 (A×B)%C, 넷째 줄에 ((A%C) × (B%C))%C를 출력한다. 풀이 A, B, C를 한 줄에 입력받으니 공백을 기준으로 나눠서 변수에 저장해야 한다. 이때, map(), input(), split() 을 사용할 것이다. map(function, iterable) : *iterable 객체(list, dict,..

Problem Solving/Python 2023. 3. 27. 09:45
이전 Prev 1 2 3 4 5 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바