Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

21-wkdghdwns199 #82

Merged
merged 6 commits into from
May 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions wkdghdwns199/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@
| 18μ°¨μ‹œ | 2024.04.03 | 집합과 맡 | <a href="https://www.acmicpc.net/problem/26069">μ ˆλŒ“κ°’ νž™</a> | <a href="https://github.com/AlgoLeadMe/AlgoLeadMe-6/pull/73">2024.04.03</a> |
| 19μ°¨μ‹œ | 2024.04.07 | μ‘°ν•©λ‘  | <a href="https://www.acmicpc.net/problem/25192">인사성 밝은 곰곰이</a> | <a href="https://github.com/AlgoLeadMe/AlgoLeadMe-6/pull/76">2024.04.07</a> |
| 20μ°¨μ‹œ | 2024.05.02 | 그리디 | <a href="https://school.programmers.co.kr/learn/courses/30/lessons/42862?itm_content=course14743">체윑볡</a> | <a href="">2024.05.02</a> |
| 21μ°¨μ‹œ | 2024.05.05 | 그리디 | <a href="https://school.programmers.co.kr/learn/courses/30/lessons/42860">μ‘°μ΄μŠ€ν‹±</a> | <a href="">2024.04.07</a> |

1 change: 1 addition & 0 deletions wkdghdwns199/tempCodeRunnerFile.java
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"java.project.sourcePaths": ["src"],
"java.project.outputPath": "bin",
"java.project.referencedLibraries": [
"lib/**/*.jar"
]
}
18 changes: 18 additions & 0 deletions wkdghdwns199/리뷰풀이/Java/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
## Getting Started

Welcome to the VS Code Java world. Here is a guideline to help you get started to write Java code in Visual Studio Code.

## Folder Structure

The workspace contains two folders by default, where:

- `src`: the folder to maintain sources
- `lib`: the folder to maintain dependencies

Meanwhile, the compiled output files will be generated in the `bin` folder by default.

> If you want to customize the folder structure, open `.vscode/settings.json` and update the related settings there.

## Dependency Management

The `JAVA PROJECTS` view allows you to manage your dependencies. More details can be found [here](https://github.com/microsoft/vscode-java-dependency#manage-dependencies).
5 changes: 5 additions & 0 deletions wkdghdwns199/리뷰풀이/Java/src/App.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
public class App {
public static void main(String[] args) throws Exception {
System.out.println("Hello, World!");
}
}
24 changes: 24 additions & 0 deletions wkdghdwns199/μ‘°μ΄μŠ€ν‹±.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@

class Solution {
public int solution(String name) {
int answer=0;

int index;
int move = name.length() -1;

for (int i=0; i<name.length(); i++){
answer += Math.min(name.charAt(i) - 'A' , 'Z' - name.charAt(i) + 1);

index = i + 1;
while(index < name.length() && name.charAt(index) == 'A'){
index++;
}

move = Math.min(move, i*2+name.length()-index);
move = Math.min(move, (name.length()-index)*2+i);

}

return answer + move;
}
}