From 044b9bf5401c4d0cdfbf0eeaf6e068fc86bb3484 Mon Sep 17 00:00:00 2001 From: kyuri4815-ship-it Date: Mon, 15 Jun 2026 22:51:45 +0900 Subject: [PATCH 1/2] =?UTF-8?q?[79=EC=9D=BC=EC=B0=A8/=EA=B9=80=EA=B7=9C?= =?UTF-8?q?=EB=A6=AC]/n=EC=9D=98=20=EB=B0=B0=EC=88=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://school.programmers.co.kr/learn/courses/30/lessons/181937 --- .../n\354\235\230 \353\260\260\354\210\230.java" | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 "5st/gyuri/n\354\235\230 \353\260\260\354\210\230.java" diff --git "a/5st/gyuri/n\354\235\230 \353\260\260\354\210\230.java" "b/5st/gyuri/n\354\235\230 \353\260\260\354\210\230.java" new file mode 100644 index 00000000..abd5b9cf --- /dev/null +++ "b/5st/gyuri/n\354\235\230 \353\260\260\354\210\230.java" @@ -0,0 +1,12 @@ +class Solution { + public int solution(int num, int n) { + int answer = 0; + + if(num % n == 0){ + answer = 1; + }else if(num % n == 1){ + answer = 0; + } + return answer; + } +} From 4484916f2197729c38ce912a9207501da65a9653 Mon Sep 17 00:00:00 2001 From: kyuri4815-ship-it Date: Mon, 15 Jun 2026 22:58:33 +0900 Subject: [PATCH 2/2] =?UTF-8?q?[79=EC=9D=BC=EC=B0=A8/=EA=B9=80=EA=B7=9C?= =?UTF-8?q?=EB=A6=AC]/=ED=99=80=EC=A7=9D=20=EA=B5=AC=EB=B6=84=ED=95=98?= =?UTF-8?q?=EA=B8=B0]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://school.programmers.co.kr/learn/courses/30/lessons/181944 --- ...5\254\353\266\204\355\225\230\352\270\260.java" | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 "5st/gyuri/\355\231\200\354\247\235 \352\265\254\353\266\204\355\225\230\352\270\260.java" diff --git "a/5st/gyuri/\355\231\200\354\247\235 \352\265\254\353\266\204\355\225\230\352\270\260.java" "b/5st/gyuri/\355\231\200\354\247\235 \352\265\254\353\266\204\355\225\230\352\270\260.java" new file mode 100644 index 00000000..4ad1ba53 --- /dev/null +++ "b/5st/gyuri/\355\231\200\354\247\235 \352\265\254\353\266\204\355\225\230\352\270\260.java" @@ -0,0 +1,14 @@ +import java.util.Scanner; + +public class Solution { + public static void main(String[] args) { + Scanner sc = new Scanner(System.in); + int n = sc.nextInt(); + + if(n%2==0){ + System.out.print(n + " " + "is even"); + }else if(n%2==1){ + System.out.print(n + " " + "is odd"); + } + } +} \ No newline at end of file