結果
| 問題 | 
                            No.889 素数!
                             | 
                    
| コンテスト | |
| ユーザー | 
                             keymoon
                         | 
                    
| 提出日時 | 2020-02-05 16:41:13 | 
| 言語 | C#(csc)  (csc 3.9.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 1,120 bytes | 
| コンパイル時間 | 936 ms | 
| コンパイル使用メモリ | 110,372 KB | 
| 実行使用メモリ | 26,776 KB | 
| 最終ジャッジ日時 | 2024-09-22 15:50:59 | 
| 合計ジャッジ時間 | 4,313 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 57 WA * 4 | 
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System;
using System.IO;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using System.Numerics;
using System.Diagnostics;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using static System.Math;
using MethodImplOptions = System.Runtime.CompilerServices.MethodImplOptions;
using MethodImplAttribute = System.Runtime.CompilerServices.MethodImplAttribute;
static class P
{
    static void Main()
    {
        var n = int.Parse(Console.ReadLine());
        if (new int[]{ 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61 }.Contains(n))
        {
            Console.WriteLine("Sosu!");
        }
        else if (new int[] { 1, 4, 9, 16, 25, 36, 49 }.Contains(n))
        {
            Console.WriteLine("Heihosu!");
        }
        else if (new int[] { 1, 8, 27 }.Contains(n))
        {
            Console.WriteLine("Ripposu!");
        }
        else if (new int[] { 6, 28 }.Contains(n))
        {
            Console.WriteLine("Ripposu!");
        }
        else
        {
            Console.WriteLine(n);
        }
    }
}
            
            
            
        
            
keymoon