Skip to content

Commit

Permalink
#9- 2163 문제풀이
Browse files Browse the repository at this point in the history
  • Loading branch information
6uohul committed Sep 17, 2023
1 parent 93bb2cc commit 1874902
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
10 changes: 6 additions & 4 deletions Algorithm/Algorithm.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
objects = {

/* Begin PBXBuildFile section */
1407E13C2AAE02CC00B4B4E6 /* main.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1407E13B2AAE02CC00B4B4E6 /* main.swift */; };
1407E13E2AB70A9600B4B4E6 /* main.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1407E13D2AB70A9600B4B4E6 /* main.swift */; };
/* End PBXBuildFile section */

/* Begin PBXCopyFilesBuildPhase section */
Expand All @@ -25,7 +25,8 @@
/* Begin PBXFileReference section */
1407E10D2AA84EDB00B4B4E6 /* 2601.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = 2601.swift; sourceTree = "<group>"; };
1407E10F2AAC384100B4B4E6 /* 2588.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = 2588.swift; sourceTree = "<group>"; };
1407E13B2AAE02CC00B4B4E6 /* main.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = main.swift; sourceTree = "<group>"; };
1407E13B2AAE02CC00B4B4E6 /* 1152.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = 1152.swift; sourceTree = "<group>"; };
1407E13D2AB70A9600B4B4E6 /* main.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = main.swift; sourceTree = "<group>"; };
147A87B62AA07AF300C5FEFB /* Algorithm */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = Algorithm; sourceTree = BUILT_PRODUCTS_DIR; };
147A87B92AA07AF300C5FEFB /* 정수형_입력받기.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "정수형_입력받기.swift"; sourceTree = "<group>"; };
147A87C22AA0820E00C5FEFB /* 개행_단위_입력받기.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "개행_단위_입력받기.swift"; sourceTree = "<group>"; };
Expand Down Expand Up @@ -85,7 +86,8 @@
14DED9AF2AA4A609002E7C43 /* 2562.swift */,
1407E10D2AA84EDB00B4B4E6 /* 2601.swift */,
1407E10F2AAC384100B4B4E6 /* 2588.swift */,
1407E13B2AAE02CC00B4B4E6 /* main.swift */,
1407E13B2AAE02CC00B4B4E6 /* 1152.swift */,
1407E13D2AB70A9600B4B4E6 /* main.swift */,
);
path = BOJ;
sourceTree = "<group>";
Expand Down Expand Up @@ -149,7 +151,7 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
1407E13C2AAE02CC00B4B4E6 /* main.swift in Sources */,
1407E13E2AB70A9600B4B4E6 /* main.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down
8 changes: 6 additions & 2 deletions Algorithm/Algorithm/BOJ/main.swift
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
//
// main.swift
// Algorithm
// 2163.swift
// 초콜렛 자르기
//
// Created by 김인영 on 2023/09/17.
//

import Foundation

let input: [Int] = readLine()!.split(separator: " ").map{Int(String($0))!}

print(input[1] - 1 + (input[0] - 1) * input[1])

0 comments on commit 1874902

Please sign in to comment.