結果
| 問題 | No.442 和と積 | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2016-11-11 23:03:05 | 
| 言語 | Ruby (3.4.1) | 
| 結果 | 
                                RE
                                 
                             | 
| 実行時間 | - | 
| コード長 | 104 bytes | 
| コンパイル時間 | 70 ms | 
| コンパイル使用メモリ | 7,552 KB | 
| 実行使用メモリ | 12,288 KB | 
| 最終ジャッジ日時 | 2024-11-25 09:17:09 | 
| 合計ジャッジ時間 | 2,332 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | RE * 3 | 
| other | RE * 18 | 
コンパイルメッセージ
Main.rb:6: warning: mismatched indentations at 'end' with 'while' at 2 Syntax OK
ソースコード
def gcd(x,y)
  while y != 0
    r = x% y
    x=y
y=r
end
x
end
a.b=gets.split.map &:to_i
p gcd(a+b,a*b)
            
            
            
        