結果

問題 No.2379 Burnside's Theorem
ユーザー Lisp_CoderLisp_Coder
提出日時 2023-08-04 01:25:39
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 248 bytes
コンパイル時間 45 ms
コンパイル使用メモリ 7,552 KB
実行使用メモリ 12,928 KB
最終ジャッジ日時 2024-04-21 23:59:40
合計ジャッジ時間 3,617 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 89 ms
12,288 KB
testcase_02 AC 94 ms
12,544 KB
testcase_03 AC 92 ms
12,416 KB
testcase_04 AC 90 ms
12,544 KB
testcase_05 AC 88 ms
12,160 KB
testcase_06 AC 89 ms
12,288 KB
testcase_07 AC 85 ms
12,160 KB
testcase_08 WA -
testcase_09 AC 88 ms
12,288 KB
testcase_10 WA -
testcase_11 AC 89 ms
12,544 KB
testcase_12 WA -
testcase_13 AC 137 ms
12,672 KB
testcase_14 AC 160 ms
12,544 KB
testcase_15 AC 170 ms
12,672 KB
testcase_16 AC 97 ms
12,544 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 85 ms
12,416 KB
testcase_20 AC 88 ms
12,416 KB
testcase_21 AC 84 ms
12,544 KB
testcase_22 WA -
testcase_23 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

def gi
  gets.chomp.to_i
end

def gm
  gets.chomp.split.map(&:to_i)
end

def gc
  gets.chomp
end

def gs
  gets.chomp.split
end

require 'prime'

n = gi

if n == 1
  puts 'No'
  exit
else
  puts Prime.prime_division(n).size == 1 ? 'Yes' : 'No'
end
0