結果
| 問題 | No.8023 素数判定するだけ |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-04-06 00:18:36 |
| 言語 | Kuin (KuinC++ v.2021.9.17) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 276 bytes |
| 記録 | |
| コンパイル時間 | 1,189 ms |
| コンパイル使用メモリ | 164,736 KB |
| 実行使用メモリ | 13,056 KB |
| 最終ジャッジ日時 | 2026-04-05 15:22:27 |
| 合計ジャッジ時間 | 3,964 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 2 TLE * 1 -- * 22 |
コンパイルメッセージ
out.cpp:1817:1: warning: non-void function does not return a value in all control paths [-Wreturn-type]
1817 | }
| ^
1 warning generated.
ソースコード
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@input().toInt(&)
var ans: bool :: @isYes(n)
do cui@print(ans ?("YES\n", "NO\n"))
end func