목록2025/01/15 (4)
Machineboy空
문제요약아라비아 숫자를 로마 숫자로 변환해라MDCLXVI1000500100501051 조건 1: 같은 글자는 3번 연속해서 나올 수 없다.조건 2: 4 = 1 + 1 + 1 + 1 이 아니라 5-1 즉 IV로 표기한다.4(IV)9(IX)40(XL)90(XC)...https://exercism.org/tracks/csharp/exercises/roman-numerals Roman Numerals in C# on ExercismCan you solve Roman Numerals in C#? Improve your C# skills with support from our world-class team of mentors.exercism.org 난이도medium풀이 포인트아이디어REVIEW 또 조건 2를 간과..
문제요약조건에 만족하는 나무를 찾아 좌표를 반환동-서 축에서 가장 클 것북-남 축에서 가장 작을 것https://exercism.org/tracks/csharp/exercises/saddle-points/mentor_request/new ExercismLearn, practice and get world-class mentoring in over 50 languages. 100% free.exercism.org 난이도medium풀이 포인트2차원 배열 요소 접근https://machineboy0.tistory.com/305 C# 다차원 배열 - rank, getLength배열(Array)참조형식https://machineboy0.tistory.com/76 Value vs Reference typeCall ..

컬렉션(Collection)이란?data structures that can hold zero or more elements are known as collections0개 혹은 더 많은 요소를 가질 수 있는 데이터 구조배열(Array) 이란 ? + 특징컬렉션 중 하나fixed size, elements must all be of the same type (모든 요소가 같은 타입, 고정된 크기의 공간)retrieved from using an index start from 0 (0부터 시작하는 인덱스로 검색 가능)reference type// size가 2인 배열 선언int[] twoInts = new int[2];// 요소에 값 할당twoInts[1] = 8;// 인덱스로 검색twoInts[1] == ..
Random Seed란?컴퓨터 프로그램에서 발생하는 무작위 수는 사실 엄격한 의미의 무작위 숫가 아니다.특정한 시작 숫자(seed)를 정해주면 컴퓨터가 정해진 알고리즘에 의해 마치 난수처럼 보이는 수열을 생성한다.seed 값이 고정될 경우, 생성되는 랜덤 값이 동일해진다. https://machineboy0.tistory.com/20 예제 코드using System;public class Player{ // 난수 생성기 생성 private Random random = new Random(); // Int 형 난수 : 1 ~ 18 public int RollDie() { // 파라미터 a이상 b 미만 return random.Next(1,19); } ..