본문 바로가기

전체 글109

printf() 변환 지정자 C언어 printf() 변환 지정자 %c단일문자char%d부호가있는 십진수int,short%ld부호가있는 긴십진주long%f십진 부동소수점수float,double%s문자열char[]%u부호가없는 십진정수unsigned int, unsigned short%lu부호가없는 긴십진수unsigned long printf()에 변환 지정자가 필요없을 경우 puts(); 2015. 4. 9.
안드로이드 로그캣 스테틱 로그유틸 /** * Created by bearkinf on 2017. 4. 18.. */ public class LogUtil { /** * 시스템 정보 가져와 로그에 출력. 클래스,메서드,라인넘버 */ public static final String BuildLogMSG(Object msg) { StackTraceElement ste = Thread.currentThread().getStackTrace()[4]; StringBuilder sb = new StringBuilder(); //이클립스에서 사용되는 바로가기 sb.append("at [(" + ste.getFileName() + ":" + ste.getMethodName() + ":" + ste.getLineNumber() + ")] "); //안드로.. 2015. 3. 18.
Temperatures import java.util.*;import java.io.*;import java.math.*; /** * Auto-generated code below aims at helping you parse * the standard input according to the problem statement. **/class Solution { public static void main(String args[]) { Scanner in = new Scanner(System.in); int N = in.nextInt(); // the number of temperatures to analyse // System.err.println("N : "+ N); in.nextLine(); int temperatures .. 2015. 2. 11.
Skynet: the Chasm import java.util.*;import java.io.*;import java.math.*; /** * Auto-generated code below aims at helping you parse * the standard input according to the problem statement. **/class Player { public static void main(String args[]) { Scanner in = new Scanner(System.in); int R = in.nextInt(); // the length of the road before the gap. // 점프전까지의 거리. int G = in.nextInt(); // the length of the gap. // 점프.. 2015. 2. 10.