結果
問題 | No.2016 Countdown Divisors |
ユーザー | Akijin_007 |
提出日時 | 2022-07-22 21:48:49 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 170 ms / 2,000 ms |
コード長 | 566 bytes |
コンパイル時間 | 880 ms |
コンパイル使用メモリ | 86,840 KB |
実行使用メモリ | 78,832 KB |
最終ジャッジ日時 | 2023-09-17 09:38:00 |
合計ジャッジ時間 | 5,128 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge11 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 96 ms
71,624 KB |
testcase_01 | AC | 166 ms
78,696 KB |
testcase_02 | AC | 169 ms
78,608 KB |
testcase_03 | AC | 170 ms
78,608 KB |
testcase_04 | AC | 163 ms
78,116 KB |
testcase_05 | AC | 155 ms
78,316 KB |
testcase_06 | AC | 136 ms
78,328 KB |
testcase_07 | AC | 137 ms
78,352 KB |
testcase_08 | AC | 165 ms
78,624 KB |
testcase_09 | AC | 164 ms
78,388 KB |
testcase_10 | AC | 165 ms
78,832 KB |
testcase_11 | AC | 165 ms
78,612 KB |
testcase_12 | AC | 165 ms
78,392 KB |
testcase_13 | AC | 166 ms
78,688 KB |
testcase_14 | AC | 164 ms
78,700 KB |
testcase_15 | AC | 165 ms
78,644 KB |
testcase_16 | AC | 167 ms
78,780 KB |
testcase_17 | AC | 165 ms
78,504 KB |
testcase_18 | AC | 164 ms
78,688 KB |
testcase_19 | AC | 96 ms
71,572 KB |
ソースコード
#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")