Hard deck/Deep dive

Allocation and Spreaded out

서버관리자 페페 2022. 8. 4. 12:59

전체 공간 > class 

 

point

- point가 있어야 한다

- point의 크기가 있어야 한다(capacity)

- point의 위상이 있어야 한다

- point의 형식이 있어야 한다

 

그리고... point가 어디로 흘러가는지

 

함수를 실행하고 나서, Output이 나가는지 나가지 않는지 민감할 것

for (int i = 0; i < T; i++) {

    // Preprocessing
    int A = sc.nextInt();
    int B = sc.nextInt();

    // Operating LCM
    int result = A*B / GCD(A, B);

    // Output Extracting Cable
    System.out.println(result);
}