結果
| 問題 | No.136 Yet Another GCD Problem |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-01-25 23:29:29 |
| 言語 | Ruby (4.0.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 53 bytes |
| 記録 | |
| コンパイル時間 | 69 ms |
| コンパイル使用メモリ | 9,088 KB |
| 実行使用メモリ | 15,104 KB |
| 最終ジャッジ日時 | 2026-03-07 16:44:57 |
| 合計ジャッジ時間 | 3,340 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 2 |
| other | AC * 14 WA * 25 |
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - k Syntax OK
ソースコード
n,k=gets.split.map(&:to_i)
p n/(2..n).find{|e|e%n==0}