結果
問題 | No.8023 素数判定するだけ |
ユーザー |
|
提出日時 | 2020-04-06 00:18:36 |
言語 | Kuin (KuinC++ v.2021.9.17) |
結果 |
TLE
|
実行時間 | - |
コード長 | 276 bytes |
コンパイル時間 | 2,020 ms |
コンパイル使用メモリ | 145,596 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-09-16 10:29:32 |
合計ジャッジ時間 | 4,815 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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] } ^ 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