Programming/Solutions (52) 썸네일형 리스트형 [BAEKJOON] 2839번: 설탕 배달 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 57 58 59 60 61 62 63 import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int n = scanner.nextInt(); int res = Integer.MAX_VALUE; int min = Integer.MAX_VALUE; int .. [BAEKJOON] 1002번: 터렛 한 정점(x₁, y₁)과의 거리가 r₁보다 작거나 같고 x좌표와 y좌표가 정수인 모든 점과 한 정점(x₂, y₂)과의 거리가 r₂보다 작거나 같고 x좌표와 y좌표가 정수인 모든 점 중에서같은 점의 개수를 출력하는 문제. 다시 말해 원 (x-x₁)² + (y-y₁)² = r₁²과 원 (x-x₂)² + (y-y₂)² = r₂²의 교점의 개수를 출력하는 문제다. 123456789101112131415161718192021222324252627282930313233343536373839404142#include int run(); int main(){ return run();} int run(){ int x1, y1, r1, x2, y2, r2; int r3; int num; int diff; scanf("%d.. [Project Euler] Problem 002 반복문(Java)1234567891011121314151617181920212223public class Problem002 { public static void main(String[] args) { int n1 = 1, n2 = 2; int n3 = n1 + n2; int sum = 2; while(n3 [Project Euler] Problem 001 123456789101112131415public class Problem001 { public static void main(String[] args) { int sum = 0 ; for(int i = 1; i Prev 1 ··· 4 5 6 7 Next