우당탕탕 개발 공부

  • 홈
  • 태그
  • GitHub

swea1976 1

swea 1976 [D2] 시각 덧셈 JAVA

풀이 : 단순 덧셈, 뺄셈 Code public class Solution1976 { public static void main(String[] args) throws IOException { Scanner sc = new Scanner(System.in); int T = sc.nextInt(); for (int tc = 1; tc 59) { result_min -= 60; // %60 를 써서 나머지로 할수도 있음. result_hour += 1; // /60 를 써서 몫으로 할수도 있음. } if (result_hour > 12) { result_hour -= 12; // %12 로 해서 나머지로 할 수 있음. } System.out.println("#" + tc + " " + result_hour ..

SWEA 2023.11.22
1
더보기
반응형
250x250
프로필사진

성장하고 싶은 초보 개발자

  • 분류 전체보기 (121)
    • Spring (23)
    • Http (6)
    • Web (5)
    • SSR(Server Side Rendering) (4)
      • Thymeleaf (4)
    • JPA (0)
    • 프로그래밍 언어 (3)
      • Python (1)
      • JAVA (2)
    • Project (8)
      • 프로젝트_한이음 (2)
      • 프로젝트_스위프(SWYP) (4)
      • 협업 툴 (2)
    • 부트캠프 (3)
      • SSAFY (1)
      • 신세계 I&C 스파로스 아카데미 (2)
    • SWEA (63)
    • BaeckJoon (3)
      • Mathematics (3)
    • IDE (2)
    • Police (1)

인기글

Archives

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

  • 깃허브

티스토리툴바