Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[8주차] 이혜원 #104

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

Merged
icegosimperson merged 8 commits into GreatAlgorithm-Study:main from icegosimperson:main
Nov 2, 2024
Merged
Changes from 1 commit
Commits
Show all changes
8 commits
Select commit Hold shift + click to select a range
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
Prev Previous commit
Next Next commit
이혜원: [BOJ] 9342 염색체_241029
  • Loading branch information
icegosimperson committed Oct 29, 2024
commit ca32f61a165d85eb5576fd5a1f1882b0f786ee17
17 changes: 17 additions & 0 deletions BOJ/5001-10000번/HW_9342.java
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int T = Integer.parseInt(br.readLine());
String str = "^[ABCDEF]?A+F+C+[ABCDEF]?$";

StringBuilder sb = new StringBuilder();
while(T-->0){
sb.append(br.readLine().matches(str) ? "Infected!" : "Good").append('\n');
}
System.out.println(sb);
}
}

AltStyle によって変換されたページ (->オリジナル) /