結果
問題 | No.2379 Burnside's Theorem |
ユーザー | flygon |
提出日時 | 2023-07-14 21:21:17 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 114 ms / 2,000 ms |
コード長 | 594 bytes |
コンパイル時間 | 710 ms |
コンパイル使用メモリ | 87,248 KB |
実行使用メモリ | 77,044 KB |
最終ジャッジ日時 | 2023-10-14 11:13:58 |
合計ジャッジ時間 | 3,894 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 88 ms
71,884 KB |
testcase_01 | AC | 89 ms
72,316 KB |
testcase_02 | AC | 89 ms
71,944 KB |
testcase_03 | AC | 98 ms
76,924 KB |
testcase_04 | AC | 94 ms
77,044 KB |
testcase_05 | AC | 92 ms
76,868 KB |
testcase_06 | AC | 92 ms
76,828 KB |
testcase_07 | AC | 93 ms
76,876 KB |
testcase_08 | AC | 93 ms
76,768 KB |
testcase_09 | AC | 102 ms
76,924 KB |
testcase_10 | AC | 97 ms
76,744 KB |
testcase_11 | AC | 98 ms
76,872 KB |
testcase_12 | AC | 98 ms
76,792 KB |
testcase_13 | AC | 105 ms
76,884 KB |
testcase_14 | AC | 108 ms
76,644 KB |
testcase_15 | AC | 109 ms
76,792 KB |
testcase_16 | AC | 100 ms
76,744 KB |
testcase_17 | AC | 98 ms
76,908 KB |
testcase_18 | AC | 114 ms
76,928 KB |
testcase_19 | AC | 102 ms
76,796 KB |
testcase_20 | AC | 107 ms
76,668 KB |
testcase_21 | AC | 112 ms
76,892 KB |
testcase_22 | AC | 90 ms
71,704 KB |
testcase_23 | AC | 112 ms
76,868 KB |
ソースコード
import sys sys.setrecursionlimit(5*10**5) input = sys.stdin.readline from collections import defaultdict, deque, Counter from heapq import heappop, heappush from bisect import bisect_left, bisect_right from math import gcd def fact(n): l = [] tmp = n for i in range(2,int(pow(n,0.5))+1): if tmp % i == 0: cnt = 0 while tmp % i == 0: cnt += 1 tmp //= i l.append([i,cnt]) if tmp != 1: l.append([tmp,1]) return l n = int(input()) if len(fact(n)) <= 2: print('Yes') else: print('No')