結果

問題 No.1113 二つの整数 / Two Integers
ユーザー yuruhiyayuruhiya
提出日時 2020-07-18 15:20:17
言語 Crystal
(1.11.2)
結果
AC  
実行時間 3 ms / 1,000 ms
コード長 150 bytes
コンパイル時間 18,217 ms
コンパイル使用メモリ 259,844 KB
実行使用メモリ 4,984 KB
最終ジャッジ日時 2023-09-13 11:12:11
合計ジャッジ時間 18,056 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
4,852 KB
testcase_01 AC 3 ms
4,764 KB
testcase_02 AC 3 ms
4,916 KB
testcase_03 AC 2 ms
4,984 KB
testcase_04 AC 2 ms
4,952 KB
testcase_05 AC 3 ms
4,900 KB
testcase_06 AC 2 ms
4,880 KB
testcase_07 AC 3 ms
4,904 KB
testcase_08 AC 2 ms
4,936 KB
testcase_09 AC 3 ms
4,836 KB
testcase_10 AC 3 ms
4,920 KB
testcase_11 AC 3 ms
4,952 KB
testcase_12 AC 3 ms
4,828 KB
testcase_13 AC 2 ms
4,948 KB
testcase_14 AC 3 ms
4,948 KB
testcase_15 AC 3 ms
4,948 KB
testcase_16 AC 3 ms
4,864 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def square?(n)
  s = Math.sqrt(n).floor
  s * s == n
end

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