結果
| 問題 | No.8023 素数判定するだけ |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-04-24 01:13:33 |
| 言語 | Kuin (KuinC++ v.2021.9.17) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 270 bytes |
| 記録 | |
| コンパイル時間 | 1,313 ms |
| コンパイル使用メモリ | 164,060 KB |
| 実行使用メモリ | 10,240 KB |
| 最終ジャッジ日時 | 2026-04-05 15:41:16 |
| 合計ジャッジ時間 | 4,211 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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]
1783 | }
| ^
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@inputInt()
var ans: bool :: @isYes(n)
do cui@print(ans ?("YES\n", "NO\n"))
end func