結果
| 問題 |
No.36 素数が嫌い!
|
| コンテスト | |
| ユーザー |
しらゆき
|
| 提出日時 | 2015-11-23 14:29:52 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 420 bytes |
| コンパイル時間 | 857 ms |
| コンパイル使用メモリ | 108,908 KB |
| 実行使用メモリ | 27,092 KB |
| 最終ジャッジ日時 | 2024-09-13 17:16:59 |
| 合計ジャッジ時間 | 13,220 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | -- * 4 |
| other | TLE * 1 -- * 25 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System;
class Program
{
static void Main()
{
long n = long.Parse(Console.ReadLine());
int cnt = 0;
for (int i = 2; i * i <= n; i++)
{
while (n % i == 0)
{
n /= i;
cnt++;
}
}
if (n != 1) cnt++;
if (cnt >= 3) Console.WriteLine("YES");
else Console.WriteLine("NO");
}
}
しらゆき