結果

問題 No.136 Yet Another GCD Problem
ユーザー ciel
提出日時 2015-01-25 23:33:16
言語 Ruby
(3.4.1)
結果
AC  
実行時間 96 ms / 5,000 ms
コード長 53 bytes
コンパイル時間 304 ms
コンパイル使用メモリ 7,296 KB
実行使用メモリ 12,160 KB
最終ジャッジ日時 2024-12-26 14:42:46
合計ジャッジ時間 5,393 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 39
権限があれば一括ダウンロードができます
コンパイルメッセージ
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|n%e==0}
0