結果
問題 |
No.889 素数!
|
ユーザー |
|
提出日時 | 2020-11-08 18:09:44 |
言語 | Ruby (3.4.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 399 bytes |
コンパイル時間 | 56 ms |
コンパイル使用メモリ | 7,552 KB |
実行使用メモリ | 12,288 KB |
最終ジャッジ日時 | 2024-07-22 15:34:05 |
合計ジャッジ時間 | 6,650 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 60 WA * 1 |
コンパイルメッセージ
Syntax OK
ソースコード
# 素数 A = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67] # 平方数 B = [1, 4, 9, 16, 25, 36, 49, 64] # 立法数 C = [8, 27, 64] # 完全数 D = [6, 28] # 入力 E = gets.to_i s = E.to_s if A.include?(E) then s = "Sosu!" elsif B.include?(E) then s = "Heihosu!" elsif C.include?(E) then s = "Ripposu!" elsif D.include?(E) then s = "Kanzensu!" end puts s