SWEA 3233 정삼각형 분할 놀이

1 개요[ | ]

SWEA 3233 정삼각형 분할 놀이
SW Expert 아카데미
# 문제 풀이

틀:SWEA 난이도 3-5

2 C++[ | ]

3 Java[ | ]

import java.util.*;
public class Solution {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int T = sc.nextInt();
        for(int tc=1; tc<=T; tc++) {
            long A = sc.nextLong();
            long B = sc.nextLong();
            System.out.format("#%d %d\n", tc, A*A/B/B);
        }
        sc.close();
    }
}
문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}