목록2025/01/17 (6)
Machineboy空

문제요약격자 8방향으로 탐색현재 셀이 1 : 주변 셀 중 1이 2개 혹은 3개이면 그대로 1, 아니면 0현재 셀이 0: 주변 셀 중 1이 3개이면 1, 아니면 그대로 0https://exercism.org/tracks/csharp/exercises/game-of-life/iterations ExercismLearn, practice and get world-class mentoring in over 50 languages. 100% free.exercism.org난이도Medium풀이 포인트DFS배열 복사REVIEW 반가운 DFS 문제! DFS를 꽤 좋아하는 편이라 반가웠다.배열이 참조타입이기 때문에 그대로 복사해서 쓸 경우 원본도 같이 훼손된다는 것을 간과해서 틀렸다..그리고 excercism 내의 편집..
https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life Conway's Game of Life - WikipediaFrom Wikipedia, the free encyclopedia Two-dimensional cellular automaton "Conway game" redirects here. For Conway's surreal number game theory, see Surreal number. A single Gosper's glider gun creating gliders A screenshot of a puffer-type breeder (red) then.wikipedia.orghttps://namu.wiki/w/%EC%BD%98%EC%9B%A8%..

1) Or8way/** * 8-way Or gate: * out = in[0] Or in[1] Or ... Or in[7] */CHIP Or8Way { IN in[8]; OUT out; PARTS: Or(a=in[0], b=in[1], out=or1); Or(a=in[2], b=in[3], out=or2); Or(a=in[4], b=in[5], out=or3); Or(a=in[6], b=in[7], out=or4); Or(a=or1, b=or2, out=or5); Or(a=or3, b=or4, out=or6); Or(a=or5, b=or6, out=out); }2) Mux4Way16/** * 4-way 16-bit multiplexor: * o..

https://nand2tetris-hdl.github.io/#mux16 HDL API & Gate Designin[16], load out[16]nand2tetris-hdl.github.io 기존 And, Not, Or,Mux 연산을 16bit로만 바꿔주면 된다.1)Not16/** * 16-bit Not gate: * for i = 0, ..., 15: * out[i] = Not(a[i]) */CHIP Not16 { IN in[16]; OUT out[16]; PARTS: Nand16(a= in[0..15], b= in[0..15], out= out);}2)And16/** * 16-bit And gate: * for i = 0, ..., 15: * out[i] = a[i] And b..

https://m.blog.naver.com/junb7/222792228046 논리게이트의 종류(AND, OR, NOT, NAND, NOR, XOR, XNOR)안녕하세요, 동반자 여러분. 이번 포스트는 다양한 논리게이트의 종류에 대해서 알아보시는 시간을 갖고자 ...blog.naver.com Elementary logic gates 1) Not/** * Not gate: * if (in) out = 0, else out = 1 */CHIP Not { IN in; OUT out; PARTS: Nand(a= in, b= in, out= out);} 2) And/** * And gate: * if (a and b) out = 1, else out = 0 */ CHIP And { I..
DateTimeimmutable(불변의) object that contains both date and time information.DateTime 특징한 번 DateTime이 생성되면 값이 절대 변하지 않는다. DateTime을 modify하려고 하면 return new DateTimetextual representaion은 dependent on the cultureen-US(America English) : "3/28/19 2:30:59 PM"DateTime.Parse() : string을 DateTime으로 변환using System;static class Appointment{ // string -> DateTime public static DateTime Schedule(string a..