목록2025/01 (37)
Machineboy空

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

문제요약10진수가 주어지면, 2진수로 바꾸어 1의 개수를 구하여라. https://exercism.org/tracks/csharp/exercises/eliuds-eggs/iterations ExercismLearn, practice and get world-class mentoring in over 50 languages. 100% free.exercism.org 난이도Easy풀이 포인트2진법 10진법 변환while문REVIEW 너무 간단한 수학 문제인데 헤맸다.10진법을 2진법으로 만드는 원리를 까먹었다.이럴땐 써보면서 원리 파악한 후에 코드 짜야 하는데 마음이 급했다. CODEpublic static class EliudsEggs{ public static int EggCount(int e..
Class의 개념The primary object-oriented construct기초적인 객체 지향 구조(?) a combination of data(field) and behavior(methods).fields and methods of a class = members Class의 Member 접근자Access to members can be restricted through access modifierpublic : member can be accessed by any codeprivate : member can only be accessed by code in the same classclass Car{ // public field in PascalCase public int Weight; ..
https://ko.wikipedia.org/wiki/%EB%94%94%ED%94%BC-%ED%97%AC%EB%A8%BC_%ED%82%A4_%EA%B5%90%ED%99%98 디피-헬먼 키 교환 - 위키백과, 우리 모두의 백과사전위키백과, 우리 모두의 백과사전. 디피-헬먼 키 교환(Diffie–Hellman key exchange)은 암호 키를 교환하는 하나의 방법으로, 두 사람이 암호화되지 않은 통신망을 통해 공통의 비밀 키를 공유할 수 있도ko.wikipedia.orghttps://exercism.org/tracks/csharp/exercises/diffie-hellman

Key conceptsBoolean algebraBoolean functionsgate logicelementary logic gatesHardware Description Language(HDL)hardware simulation1.1 Boolean Logicthe reason that computer only have 0s and 1s is because that's what they can get away with.It's simplest to have only two possible values that you need to maintain.And that's going to be enough as we will see today.We're starting with actual, the compl..

문제요약단어를 구성하는 알파벳에 따라 점수를 매겨라. 난이도Easy풀이 포인트switch문 사용forEach문 사용 foreach (char a in input) { }https://machineboy0.tistory.com/308 C# if문, switch문, for문, forEach문, while문완전 기초를 다시 다지고 가자.조건문 구성할 때 switch문이 적절한 케이스였음에도 바로 생각나지 않아서 정리한다.If문특정 조건에 따라 코드를 실행할지 말지 결정할 수 있는 문법if( 조건부 ) {machineboy0.tistory.com REVIEW forEach문을 C#으로 작성하는 데 버벅였고, 이 문제는 현저히 switch문에 어울리는 케이스였으나 바로 떠올리지 못해서 정리해둔다. 강의https..