結果
| 問題 |
No.2016 Countdown Divisors
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-07-22 21:48:49 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 122 ms / 2,000 ms |
| コード長 | 566 bytes |
| コンパイル時間 | 196 ms |
| コンパイル使用メモリ | 82,304 KB |
| 実行使用メモリ | 77,824 KB |
| 最終ジャッジ日時 | 2024-07-04 06:01:58 |
| 合計ジャッジ時間 | 3,482 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 19 |
ソースコード
#int(input())
#map(int, input().split())
#list(map(int, input().split()))
from collections import Counter
def prime_factorize(n):
a = []
while n % 2 == 0:
a.append(2)
n //= 2
f = 3
while f * f <= n:
if n % f == 0:
a.append(f)
n //= f
else:
f += 2
if n != 1:
a.append(n)
return a
T = int(input())
x = [0] * T
for i in range(T):
x[i] = int(input())
a = [1, 3, 4, 5, 7, 8]
for i in range(T):
if x[i] in a:
print("1")
else:
print("2")