結果
| 問題 |
No.1250 汝は倍数なりや?
|
| コンテスト | |
| ユーザー |
horiesiniti
|
| 提出日時 | 2023-02-08 09:48:49 |
| 言語 | Ruby (3.4.1) |
| 結果 |
AC
|
| 実行時間 | 235 ms / 1,000 ms |
| コード長 | 137 bytes |
| コンパイル時間 | 337 ms |
| コンパイル使用メモリ | 7,296 KB |
| 実行使用メモリ | 25,216 KB |
| 最終ジャッジ日時 | 2024-07-05 23:27:47 |
| 合計ジャッジ時間 | 8,613 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 49 |
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - n Syntax OK
ソースコード
n,h=gets.split(" ").map{|e| e.to_i}
gets.split(" ").map{|e| e.to_i}.each{|e|
h=h/h.gcd(e)
}
if h==1 then
puts "YES"
else
puts "NO"
end
horiesiniti