結果
| 問題 | 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 |
ソースコード
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"
yuruhiya