結果
問題 |
No.36 素数が嫌い!
|
ユーザー |
![]() |
提出日時 | 2019-10-17 10:22:20 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 397 bytes |
コンパイル時間 | 1,021 ms |
コンパイル使用メモリ | 113,752 KB |
実行使用メモリ | 27,836 KB |
最終ジャッジ日時 | 2024-06-23 23:08:44 |
合計ジャッジ時間 | 2,990 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 15 WA * 11 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; namespace ConsoleApp { class Program { static void Main(string[] args) { ulong N = ulong.Parse(Console.ReadLine()); if (N == 1 || N == 3 || N == 5 || N % 2 != 0 && N % 3 != 0 && N % 5 != 0) { Console.WriteLine("NO"); } else Console.WriteLine("YES"); } } }