목록2024/12/31 (5)
leehyeon-dv 님의 블로그
📌 문제 🐍파이썬import sysaddResult = []while True: A,B = map(int, sys.stdin.readline().split()) if A == 0 and B == 0: break addResult.append(A+B)for i in addResult: print(i) 🧩자바import java.io.*;import java.util.ArrayList;import java.util.List;public class Main { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStr..
📌 문제 🐍파이썬import sysN = int(sys.stdin.readline())if ( 1 🧩자바import java.io.*;public class Main { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out)); int N = Integer.parseInt(br.readLine()); if(1
📌 문제 🐍파이썬import sysN = int(sys.stdin.readline())if ( 1 🧩자바import java.io.*;public class Main { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out)); int N = Integer.parseInt(br.readLine()); if(1
📌 문제 🐍파이썬import sysT=int(sys.stdin.readline())a, b = [], []sum = []for i in range(T): A, B = map(int, sys.stdin.readline().split()) a.append(A) b.append(B) sum.append(A+B)for i in range(T): print("Case #%d: %d + %d = %d" % (i+1, a[i],b[i], sum[i])) 🧩자바import java.io.*;public class Main { public static void main(String[] args) throws Exception { BufferedReader br = new..
📌 문제 🐍파이썬import sysT=int(sys.stdin.readline())sum = []for i in range(T): A, B = map(int, sys.stdin.readline().split()) sum.append(A+B)for i in range(T): print("Case #%d: %d" % (i+1, sum[i])) 🧩자바import java.io.*;public class Main { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); Buffe..