Skip to content

Commit

Permalink
2024.02.14 solved
Browse files Browse the repository at this point in the history
  • Loading branch information
JangHongJoon committed Feb 14, 2024
1 parent ba30806 commit 105cc02
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions wkdghdwns199/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@
| 2μ°¨μ‹œ | 2024.01.24 | 집합과 맡 | <a href="https://www.acmicpc.net/problem/1620">λ‚˜λŠ”μ•Ό 포켓λͺ¬ λ§ˆμŠ€ν„° μ΄λ‹€μ†œ</a> | <a href="">2024.01.24</a> |
| 3μ°¨μ‹œ | 2024.01.28 | μ•½μˆ˜, λ°°μˆ˜μ™€ μ†Œμˆ˜ | <a href="https://www.acmicpc.net/problem/2485">κ°€λ‘œμˆ˜</a> | <a href="">2024.01.28</a> |
| 4μ°¨μ‹œ | 2024.01.30 | μ•½μˆ˜, λ°°μˆ˜μ™€ μ†Œμˆ˜ | <a href="https://www.acmicpc.net/problem/4134">λ‹€μŒ μ†Œμˆ˜</a> | <a href="">2024.01.30</a> |
| 5\μ°¨μ‹œ | 2024.02.14 | μ•½μˆ˜, λ°°μˆ˜μ™€ μ†Œμˆ˜ | <a href="https://www.acmicpc.net/problem/17103">λ‹€μŒ μ†Œμˆ˜</a> | <a href="">2024.02.14</a> |
---
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import sys
import math

array = [True for i in range (1000001)]

for i in range (2,1001) :
if array[i] :
for k in range (i*2, 1000001, i):
array[k] = False

T = int(sys.stdin.readline().strip())
while T > 0:
T -=1
count = 0
N = int(sys.stdin.readline().strip())
for x in range(2, N//2+1) :
if array[x] and array[N-x]:
count+=1

print(count)

0 comments on commit 105cc02

Please sign in to comment.