반응형 tonyzorz22 Arrays and Sorting Algorithms (week2) Preprocessing – #include Compiling - programming language converts codes to assembly language for computer to understand Assembling – using assembling code and converts to 10101010100101001010s(machine code, object code) Linking – linking step links all the imported files, stdio.h + cs50.h + yourfile.h. These days, people call these four steps compiling to be general. Ram, random access memory, .. 2019. 12. 26. Comparable vs Comparator Comparable is a interface you need to implement to a Object where a specific compare standard has to be defined by overriding compareTo method. compareTo needs to be returned as an int value, + for moving up a list, - for moving down, 0 for staying at the same place. Wrapper type data does NOT need comparable interface to be compared since all Wrapper class already has been implemented with a Co.. 2019. 12. 1. 백준 5단계(4344) 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.util.StringTokenizer; public class Main { public static void main(String[] args) throws Exceptio.. 2019. 11. 28. 백준 5단계(8958) 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.InputStreamReader; import java.io.OutputStreamWriter; public class Main { public static void main(String[] args) throws Exception{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); BufferedWriter bw = .. 2019. 11. 28. 이전 1 2 3 4 다음 반응형