結果
問題 | No.8023 素数判定するだけ |
ユーザー |
|
提出日時 | 2020-07-11 21:13:33 |
言語 | Kuin (KuinC++ v.2021.9.17) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 282 bytes |
コンパイル時間 | 1,844 ms |
コンパイル使用メモリ | 146,124 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-16 11:14:30 |
合計ジャッジ時間 | 5,684 ms |
ジャッジサーバーID (参考情報) |
judge6 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 25 |
ソースコード
func isYes(n: int): boolfor i(true $ int, n)if(i = true $ int)skip iend ifif(n % i = false $ int)ret i = nend ifend forret falseend funcfunc main()var n: int :: cui@inputInt()var ans: bool :: @isYes(n)do cui@print(ans ?("YES\n", "NO\n"))end func