๋ฐ์ํ ์๊ณ ๋ฆฌ์ฆ65 [์ฝ๋์ ๊ธฐ์ด 100์ -JAVA] 1071~1080๋ฒ 1071๋ฒ import java.io.*; import java.util.*; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String[] a = br.readLine().split(" "); br.close(); PrintWriter pw = new PrintWriter(System.out); for (int i = 0; i < a.length; i++) { if (a[i].equals("0")) { break; } else { pw.println(a[i]); } } pw.f.. 2023. 3. 4. [์ฝ๋์ ๊ธฐ์ด 100์ -JAVA] 1061~1070๋ฒ 1061๋ฒ import java.io.*; import java.util.*; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(br.readLine()); int a = Integer.parseInt(st.nextToken()); int b = Integer.parseInt(st.nextToken()); br.close(); PrintWriter pw = new PrintWriter(System.out); p.. 2023. 3. 4. [์ฝ๋์ ๊ธฐ์ด 100์ -JAVA] 1051~1060๋ฒ 1051๋ฒ import java.io.*; import java.util.*; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(br.readLine()); int a = Integer.parseInt(st.nextToken()); int b = Integer.parseInt(st.nextToken()); br.close(); PrintWriter pw = new PrintWriter(System.out); i.. 2023. 3. 4. [์ฝ๋์ ๊ธฐ์ด 100์ -JAVA] 1041~1050๋ฒ 1041๋ฒ import java.io.*; import java.util.*; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(br.readLine()); char a = st.nextToken().charAt(0); a = (char) (a + 1); br.close(); PrintWriter pw = new PrintWriter(System.out); pw.println(a); pw.flush(); pw... 2023. 3. 4. [์ฝ๋์ ๊ธฐ์ด 100์ -C์ธ์ด] 1031~1040๋ฒ 1031๋ฒ #include int main() { int n; scanf("%d", &n); printf("%o", n); return 0; } โ %d(10์ง์ ํํ)๋ก ์ ๋ ฅ๋ฐ๊ณ , %o๋ฅผ ์ฌ์ฉํด ์ถ๋ ฅํ๋ฉด 8์ง์(octal)๋ก ์ถ๋ ฅ๋๋ค. %d๋ 10์ง์์ ์์๋ฌธ์ %o๋ 8์ง์์ ์์๋ฌธ์ 1032๋ฒ #include int main() { int n; scanf("%d", &n); printf("%x", n); return 0; } %x ๋ 16์ง์๋ฅผ ์๋ฌธ์๋ก ์ฌ์ฉํ ๋ ์ฌ์ฉํ๋ ์์ ๋ฌธ์์ด๋ค. 1033๋ฒ #include int main() { int n; scanf("%d", &n); printf("%X", n); return 0; } %X ๋ 16์ง์๋ฅผ ์๋ฌธ์๋ก ์ฌ์ฉํ ๋ ์ฌ์ฉํ๋ ์์ ๋ฌธ์์ด๋ค. 10.. 2023. 2. 27. [์ฝ๋์ ๊ธฐ์ด 100์ -C์ธ์ด] 1021~1030๋ฒ 1021๋ฒ #include int main() { char data[51]=""; scanf("%s", data); printf("%s", data); return 0; } %s ๋ ๋ฌธ์์ด์ ์ฐ์ด๋ ์์ ๋ฌธ์์ด๋ค. 1022๋ฒ #include int main() { char data[2001]; fgets(data, 2000, stdin); printf("%s", data); return 0; } ๋์ด์ฐ๊ธฐ๋ฅผ ํฌํจํ ๋ฌธ์ฅ์ ์ ์ฅํ๊ธฐ ์ํด์๋ fgets() ํจ์๋ฅผ ์ฌ์ฉํ๋ค. fgets(a, b, c) a ์๋ ์ ๋ ฅ๋ฐ์ ๊ฐ์ ์ ์ฅํ ๊ณต๊ฐ์ ์ ๋ ฅํ๋ค. b ์๋ ์ ๋ ฅ๋ฐ์ ๊ฐ์ ์ต๋ ๊ฐ์๋ฅผ ๋ฃ์ด์ค๋ค. c ์๋ ํ์ค ์ ๋ ฅ์ ๋ฐ๊ธฐ ์ํ stdin์ ์ ๋ ฅํ๋ค. 1023๋ฒ #include int main() { int a,.. 2023. 2. 27. ์ด์ 1 2 3 4 ยทยทยท 11 ๋ค์ ๋ฐ์ํ