結果

問題 No.2379 Burnside's Theorem
ユーザー tatt61880
提出日時 2023-07-23 11:18:27
言語 Kuin
(KuinC++ v.2021.9.17)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 341 bytes
コンパイル時間 5,971 ms
コンパイル使用メモリ 149,408 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-09-24 10:22:50
合計ジャッジ時間 4,458 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

func main()
	var n: int :: cui@inputInt()
	var ans: bool :: false
	if(n = 1)
		do ans :: true
	else
		var factors: []int :: math@primeFactors(n)
		var dic: dict<int, bool> :: #dict<int, bool>
		for i(0, ^factors - 1)
			do dic.add(factors[i], true)
		end for
		do ans :: ^dic <= 2
	end if
	do cui@print((ans ?("Yes", "No")) ~ "\n")
end func
0