본문 바로가기 메뉴 바로가기

MMM

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

MMM

검색하기 폼
  • 분류 전체보기 (35)
    • UNITY (1)
      • 2d (1)
      • 3d (0)
    • 백엔드 (10)
      • Java & Spring (5)
    • 프론트엔드 (1)
    • 웹 개발 (2)
    • 망공부 (18)
      • 코딩테스트 (11)
      • CS (6)
    • 망삶 (1)
  • 방명록

codingtest (2)
[프로그래머스] 주사위 게임2 (Java)

문제설명 조건문 사용하는 문제입니다. 풀이 1. class Solution { public int solution(int a, int b, int c) { int answer = 0; if(a==b && b==c){ //다 같을때 answer = (a+b+c)*(a*a+b*b+c*c)*(a*a*a+b*b*b+c*c*c); }else if(a==b || a==c ||b==c){ //두개씩만 같을때 answer = (a + b + c) * (a * a + b * b + c * c); }else { //다 다를때 answer = a+b+c; } return answer; } } 2. class Solution { public int solution(int a, int b, int c) { int answer ..

망공부/코딩테스트 2023. 11. 21. 16:26
[프로그래머스] 대소문자 바꿔서 출력하기 (java)

import java.util.Scanner; public class Solution { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String a = sc.next(); String ans = ""; for (int i=0; i

망공부/코딩테스트 2023. 11. 7. 03:46
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • 시간복잡도
  • 자바공부
  • 자료구조
  • 스프링부트
  • Nest
  • codingtest
  • 인텔리제이
  • 코딩
  • Java
  • springboot
  • 문자열출력
  • 코딩공부
  • 자바
  • coding
  • 알고리즘
  • 코딩테스트
  • NestJS
  • Hashtable
  • intellij
  • 웹개발
  • HashMap
  • Spring
  • Annotation
  • 코테
  • 프론트엔드
  • 네스트
  • 프로그래머스
  • 스프링시큐리티
  • programmers
  • hash
more
«   2026/01   »
일 월 화 수 목 금 토
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
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바