結果
| 問題 |
No.8023 素数判定するだけ
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-04-06 00:18:17 |
| 言語 | Kuin (KuinC++ v.2021.9.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 267 bytes |
| コンパイル時間 | 2,188 ms |
| コンパイル使用メモリ | 145,968 KB |
| 実行使用メモリ | 13,880 KB |
| 最終ジャッジ日時 | 2024-09-16 10:29:26 |
| 合計ジャッジ時間 | 5,247 ms |
|
ジャッジサーバーID (参考情報) |
judge6 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 2 TLE * 1 -- * 22 |
コンパイルメッセージ
out.cpp:1817:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] } ^ 1 warning generated.
ソースコード
func isYes(n: int): bool
for i(true $ int, n)
if(i = true $ int)
skip i
end if
if(n % i = 0)
ret i = n
end if
end for
end func
func main()
var n: int :: cui@input().toInt(&)
var ans: bool :: @isYes(n)
do cui@print(ans ?("YES\n", "NO\n"))
end func