urakasumi 4

C

[Java] socket서버 실시간 채팅 구현 ( jdk-11.0.12.7-hotspot )

1. 서버 ( ChatServer.java ) 더보기 import java.io.IOException; import java.net.ServerSocket; import java.net.Socket; import java.util.ArrayList; import java.util.List; public class ChatServer { private ServerSocket svSocket; private List clist; public ChatServer() { try { svSocket = new ServerSocket(9500); // 포트 System.out.println("# 서버 준비 완료"); clist = new ArrayList(); while (true) { System.out.prin..

Dev/Java 2021.12.13

C

[ BaekJoon ] 단계별로 풀기 4. while (Python & Java & JS)

단계별로 풀기 - 4. while 10952 A + B - 5 import sys input = sys.stdin.readline while True: a, b = map(int, input().split()) if a + b: print(a + b) else: break let fs = require('fs'); let input = fs.readFileSync(__dirname + '/dev/stdin').toString().split('\n'); let i = 0; let res = ""; while (true) { let nums = input[i].split(" "); let a = nums[0] / 1; let b = nums[1] / 1; if (a..

Algorithm/BOJ 2021.12.09