issac의 티스토리

  • 홈
  • 태그
  • 방명록

2525 1

백준 2525 java

import java.util.Scanner; public class Main{ public static void main(String[] args) throws Exception { int h; int m; int t; Scanner sc = new Scanner(System.in); h = sc.nextInt(); // 시간 m = sc.nextInt(); // 분 t = sc.nextInt(); // input 시간 m= m+t; // input 더함 while(m>=60){ // m이 60미만이 될 때까지 if(m>=60){ h = h+1; m = m-60; if(h>=24){ h =0; } } } System.out.println(h + " " + m); } }

백준(java) 2023.08.16
이전
1
다음
더보기
프로필사진

issac의 티스토리

긍정적인 생각, 유연한 사고

  • 분류 전체보기 (26)
    • PHP (2)
    • 백준(java) (19)
    • 기타 (1)
    • c++ (4)

Tag

asmr, 10818, 14681, java, 2753, 2438, 백준, 2739, 2884, 2588, 10798, 10869, 11021, 2439, 2563, 11832, 15552, 2562, 9298, PHP,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/05   »
일 월 화 수 목 금 토
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

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바