結果

問題 No.1224 I hate Sqrt Inequality
ユーザー cielciel
提出日時 2021-06-05 03:11:42
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 99 bytes
コンパイル時間 46 ms
コンパイル使用メモリ 7,680 KB
実行使用メモリ 12,416 KB
最終ジャッジ日時 2024-04-30 20:35:16
合計ジャッジ時間 1,890 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 77 ms
12,288 KB
testcase_02 AC 75 ms
12,288 KB
testcase_03 AC 74 ms
12,160 KB
testcase_04 WA -
testcase_05 AC 74 ms
12,288 KB
testcase_06 WA -
testcase_07 AC 85 ms
12,160 KB
testcase_08 AC 76 ms
12,288 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 79 ms
12,160 KB
testcase_13 WA -
testcase_14 AC 76 ms
12,160 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

a,b=gets.split.map &:to_i
b/=b.gcd a
b/=2 while b%2<1
b/=5 while b%5<1
puts a.gcd(b)<2 ? :No : :Yes
0