-
Notifications
You must be signed in to change notification settings - Fork 4
[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
Merged
[8주차] 이혜원 #104
Changes from 1 commit
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
88fd449
이혜원: [CT] 방화벽_설치하기_241028
icegosimperson 8932a6d
이혜원: [SQL] 조회수가 가장 많은 중고거래 게시판의 첨부파일 조회하기_241029
icegosimperson ca32f61
이혜원: [BOJ] 9342 염색체_241029
icegosimperson fb14a54
이혜원: [BOJ] 1911 흙길 보수하기_241029
icegosimperson e2d4f01
이혜원: [BOJ] 20007 떡 돌리기_241030
icegosimperson 11f5d32
이혜원: [SQL] 입양 시각 구하기(1)_241031
icegosimperson 2b2b1c2
이혜원: [BOJ] 2461 대표 선수_241031
icegosimperson aac01e5
이혜원: [PG] 150369 택배 배달과 수거하기_241030
icegosimperson File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
이혜원: [BOJ] 9342 염색체_241029
- Loading branch information
commit ca32f61a165d85eb5576fd5a1f1882b0f786ee17
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
BOJ/5001-10000번/HW_9342.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.