728x90 반응형 go12 2021.10.22_15552-빠른A+B 소스코드 package main import ( "bufio" "fmt" "os" ) func main() { var length int reader := bufio.NewReader(os.Stdin) writer := bufio.NewWriter(os.Stdout) fmt.Fscanln(reader, &length) var a, b int for i := 0; i < length; i++ { fmt.Fscanln(reader, &a, &b) fmt.Fprintln(writer, a+b) } writer.Flush() } 설계 설계 할것은 없긴하다 목적은 입출력을 해본것 우선 go언어의 경우는 bufio를 사용시 빠른 입출력을 가짐 실수 여기서 writer.Flush()부분이 있는데 이것이 포문안에 있으.. 2021. 10. 22. GoLangWeb-postgreDB https://github.com/3DPIT/golang/blob/master/05.GolangWeb/0831/01.postgreDB/2021%EB%85%8408%EC%9B%9431%EC%9D%BC_GoLangWeb-postgreDB.md GitHub - 3DPIT/golang Contribute to 3DPIT/golang development by creating an account on GitHub. github.com 2021. 8. 31. GoLangWeb-SQLquery https://github.com/3DPIT/golang/blob/master/05.GolangWeb/0826/01.SQLquery/2021%EB%85%8408%EC%9B%9426%EC%9D%BC_GoLangWeb-SQLquery.md GitHub - 3DPIT/golang Contribute to 3DPIT/golang development by creating an account on GitHub. github.com 2021. 8. 27. GoLangWeb-TodoWeb1 https://github.com/3DPIT/golang/blob/master/05.GolangWeb/0812/Todo%EC%9B%B91/2021%EB%85%8408%EC%9B%9411%EC%9D%BC_GoLangWeb-Todo%EC%9B%B9.md GitHub - 3DPIT/golang Contribute to 3DPIT/golang development by creating an account on GitHub. github.com 2021. 8. 13. 이전 1 2 3 다음 728x90 반응형