結果

問題 No.2379 Burnside's Theorem
コンテスト
ユーザー ID 21712
提出日時 2024-11-15 21:14:07
言語 Go
(1.26.1)
コンパイル:
env GOCACHE=/tmp go build _filename_
実行:
./Main
結果
WA  
実行時間 -
コード長 242 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 14,383 ms
コンパイル使用メモリ 298,512 KB
実行使用メモリ 6,400 KB
最終ジャッジ日時 2026-05-10 21:44:51
合計ジャッジ時間 14,487 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge2_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3 WA * 1
other AC * 14 WA * 6
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

package main

import . "fmt"

func main() {
	var n,c,x,m int64
	Scan(&n)
	for x,m=2,n;x*x<=m;x++ {
		if n%x!=0 {
			continue
		}
		c++
		for n%x==0 {
			n/=x
		}
	}
	if x>1 {
		c++
	}
	if c==2 {
		Println("Yes")
	} else {
		Println("No")
	}
}
0