結果

問題 No.8023 素数判定するだけ
ユーザー tatt61880
提出日時 2020-04-24 01:13:33
言語 Kuin
(KuinC++ v.2021.9.17)
結果
TLE  
実行時間 -
コード長 270 bytes
コンパイル時間 2,133 ms
コンパイル使用メモリ 146,132 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-09-16 10:44:58
合計ジャッジ時間 4,928 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 2 TLE * 1 -- * 22
権限があれば一括ダウンロードができます
コンパイルメッセージ
out.cpp:1783:1: warning: non-void function does not return a value in all control paths [-Wreturn-type]
}
^
1 warning generated.

ソースコード

diff #

func isYes(n: int): bool
	for i(true $ int, n)
		if(i = true $ int)
			skip i
		end if
		if(n % i = false $ int)
			ret i = n
		end if
	end for
end func

func main()
	var n: int :: cui@inputInt()
	var ans: bool :: @isYes(n)
	do cui@print(ans ?("YES\n", "NO\n"))
end func
0