문제 정답import java.io.BufferedReader;import java.io.IOException;import java.io.InputStreamReader;public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); while(true) { String original = br.readLine(); StringBuffer sb = new StringBuffer(original); if(o..
서로 인터페이스로 통신을 하다가레코드를 생성 및 조회 등CRUD가 가능하다는 것을 알게 됐어요 제가 처음 알게 된 지식인 만큼 블로그에 남기고 싶어 포스팅해봅니다 :) 1. 생성생성의 경우 2가지 방법으로 API가 가능합니다. 1) Developer를 참고한 APIURL : {SFDC DOMAIN}/services/data/vXX.X/sobjects/{Object API NAME}vXX.X : API 버전Method Type : POSTHeader : Bearer TokenBody : JSON타입으로 필드값 채워주기위 이미지는 제가 직접 postman으로 Case를 생성해보았습니다.위와 같이 Body 채워주시면 됩니다. 그럼 위와 같이 생성된 오브젝트의 Id와 성공 여부가 나오며실패할 경우 에러 메시지..
문제 정답import java.io.BufferedReader;import java.io.IOException;import java.io.InputStreamReader;import java.util.StringTokenizer;public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int N = Integer.parseInt(br.readLine()); // 참가자수 int[] sizes = new int[6]; S..
문제 정답import java.io.BufferedReader;import java.io.IOException;import java.io.InputStreamReader;import java.util.StringTokenizer;public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); while(true) { StringTokenizer st = new StringTokenizer(br.readLine(), " "); ..
문제 정답import java.io.BufferedReader;import java.io.IOException;import java.io.InputStreamReader;public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); Integer result = 0; Integer seq = 0; char beforeOX; int num = Integer.parseInt(br.readLine()); for(int..
문제 정답첫 번째 방법import java.io.BufferedReader;import java.io.IOException;import java.io.InputStreamReader;import java.util.StringTokenizer;public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(br.readLine(), " "); String result = ""; ..
문제 정답import java.io.BufferedReader;import java.io.IOException;import java.io.InputStreamReader;public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int A = Integer.parseInt(br.readLine()); int B = Integer.parseInt(br.readLine()); int C = Integer.parseInt(br.readLi..
문제 정답import java.util.Scanner;public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int num = scanner.nextInt(); for (int i = 1; i 설명 생략
문제 정답 풀이import java.util.Scanner;public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int sum = 0; for (int i = 0; i 그냥 input값 받고 제곱하고 더하는 걸 반복문에서 처리한 후10으로 나눈 값을 출력하면 되는 간단한 문제였습니다. 오랜만에 알고리즘 푸니 낮설고 어색하고..ㅎㅎ
문제 정답 코드import java.io.BufferedReader;import java.io.IOException;import java.io.InputStreamReader;import java.util.StringTokenizer;public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int T = Integer.parseInt(br.readLine()); for(int i = 0; i 일단 몇 층에 방을 가야 하는지 나머지 연산(%)을 통..