結果
問題 | No.442 和と積 |
ユーザー |
|
提出日時 | 2016-11-11 23:03:42 |
言語 | Ruby (3.4.1) |
結果 |
AC
|
実行時間 | 91 ms / 1,000 ms |
コード長 | 104 bytes |
コンパイル時間 | 121 ms |
コンパイル使用メモリ | 7,424 KB |
実行使用メモリ | 12,288 KB |
最終ジャッジ日時 | 2024-07-04 22:32:29 |
合計ジャッジ時間 | 2,647 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 18 |
コンパイルメッセージ
Main.rb:6: warning: mismatched indentations at 'end' with 'while' at 2 Syntax OK
ソースコード
def gcd(x,y)while y != 0r = x% yx=yy=rendxenda,b=gets.split.map &:to_ip gcd(a+b,a*b)