baekjoon 20251218
This commit is contained in:
parent
346dc68487
commit
c1032afba1
2
code_study/Baekjoon/python/10699.py
Normal file
2
code_study/Baekjoon/python/10699.py
Normal file
@ -0,0 +1,2 @@
|
||||
from datetime import datetime as dt
|
||||
print(str(dt.now())[:10])
|
||||
20
code_study/Baekjoon/python/27172.py
Normal file
20
code_study/Baekjoon/python/27172.py
Normal file
@ -0,0 +1,20 @@
|
||||
import sys
|
||||
input = sys.stdin.readline
|
||||
|
||||
MAX_NUM = 1000001
|
||||
score = [0]*MAX_NUM
|
||||
cards = [False]*MAX_NUM
|
||||
nums = []
|
||||
|
||||
N = int(input())
|
||||
for n in map(int, input().split()) :
|
||||
nums.append(n)
|
||||
cards[n] = True
|
||||
|
||||
for n in nums :
|
||||
for i in range(n*2,MAX_NUM, n) :
|
||||
if cards[i] :
|
||||
score[n] += 1
|
||||
score[i] -= 1
|
||||
|
||||
print(' '.join(map(str, list(score[n] for n in nums))))
|
||||
Loading…
x
Reference in New Issue
Block a user