結果

問題 No.1113 二つの整数 / Two Integers
ユーザー yuruhiya
提出日時 2020-07-18 15:03:16
言語 Crystal
(1.14.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 175 bytes
コンパイル時間 12,429 ms
コンパイル使用メモリ 299,300 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-30 20:34:57
合計ジャッジ時間 13,244 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

struct Int
  def square?
    s = Math.sqrt(self).floor
    s * s == self
  end
end

require "big"
a, b = read_line.split.map &.to_big_i
puts a.gcd(b).square? ? "Odd" : "Even"
0