結果

問題 No.136 Yet Another GCD Problem
ユーザー cielciel
提出日時 2015-01-25 23:29:29
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 53 bytes
コンパイル時間 650 ms
コンパイル使用メモリ 11,204 KB
実行使用メモリ 15,416 KB
最終ジャッジ日時 2023-09-05 06:31:56
合計ジャッジ時間 6,755 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 82 ms
15,040 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 87 ms
15,088 KB
testcase_09 AC 83 ms
15,140 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 AC 82 ms
15,164 KB
testcase_24 WA -
testcase_25 AC 81 ms
15,288 KB
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 AC 80 ms
15,240 KB
testcase_32 WA -
testcase_33 AC 82 ms
15,240 KB
testcase_34 AC 84 ms
15,280 KB
testcase_35 AC 86 ms
15,172 KB
testcase_36 AC 84 ms
15,344 KB
testcase_37 AC 92 ms
15,148 KB
testcase_38 AC 81 ms
15,036 KB
testcase_39 AC 85 ms
15,148 KB
testcase_40 AC 84 ms
15,124 KB
testcase_41 AC 83 ms
15,164 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - k
Syntax OK

ソースコード

diff #

n,k=gets.split.map(&:to_i)
p n/(2..n).find{|e|e%n==0}
0