버그 고치다 만든 블로그

  • 홈
  • 태그
  • 방명록

c++ 3

[백준 코딩테스트] 2884번, 2525번 | C, C#, Python

[ 2884번 ] [ C# ] string[] s = Console.ReadLine().Split(); int h = int.Parse(s[0]); int m = int.Parse(s[1]); m -= 45; if(m < 0){ m += 60; h -= 1; if(h < 0) h = 23; } Console.WriteLine($"{h} {m}"); [ Python ] h, m = map(int, input().split()) m -= 45 if(m < 0): m += 60 h -= 1 if(h < 0): h = 23 print("{} {}".format(h, m)) [ C ] #include int main(){ int h, m; scanf("%d %d", &h, &m); m -= 45; if(m < 0..

코딩 공부/백준 코딩테스트 2023.04.07

[백준 코딩테스트] 2753번, 14681번 | C, C#, Python

[ 2753번 | 윤년 ] https://www.acmicpc.net/problem/2753 [ C# ] int y = int.Parse(Console.ReadLine()); if(y % 400 == 0) Console.Write(1); else if(y % 100 == 0) Console.Write(0); else if(y % 4 == 0) Console.Write(1); else Console.Write(0); [ Python ] y = int(input()) if(y % 400 == 0): print(1) elif(y % 100 == 0): print(0) elif(y % 4 == 0): print(1) else: print(0) [ C ] #include int main(){ int y; scan..

코딩 공부/백준 코딩테스트 2023.04.05

[백준 코딩테스트] 1330번, 9498번 | C, C#, Python

[ 1330번: 두 수 비교하기 ] https://www.acmicpc.net/problem/1330 [ C# ] string s = Console.ReadLine(); string[] ss = s.Split(); int a = int.Parse(ss[0]); int b = int.Parse(ss[1]); if(a > b) Console.Write(">"); else if(a < b) Console.Write("") elif(a < b): print(""); else if(a < b) printf("

코딩 공부/백준 코딩테스트 2023.04.05
이전
1
다음
더보기
반응형
프로필사진

버그 고치다 만든 블로그

안녕하세요. 버그 고치다가 돌아서 만든 블로그입니다.

  • 분류 전체보기 (57)
    • Unity | 유니티 (28)
      • Unity 개발 일지 (15)
      • Unity 버그 수정 일지 (10)
      • Unity 미니 게임 (3)
    • 코딩 공부 (29)
      • 백준 코딩테스트 (12)
      • 프로그래머스 코딩테스트 (13)
      • 공부 (4)

Tag

데이터베이스 추천, unity, BGDatabase, 유니티, 프로그래머스, C#, 코딩테스트, 백준, dotween, (남이 만들어 놓은)버그 고치다 돌아서 만든 블로그, 벌레잡기, 타이핑모션, c++, Python, 자료구조, 코드, 미니게임, C, minigame, 스크립트,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • 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.

티스토리툴바