結果
問題 | No.2194 兄弟の掛け引き |
ユーザー |
![]() |
提出日時 | 2023-01-24 04:05:12 |
言語 | Ruby (3.4.1) |
結果 |
AC
|
実行時間 | 95 ms / 1,000 ms |
コード長 | 202 bytes |
コンパイル時間 | 520 ms |
コンパイル使用メモリ | 7,552 KB |
実行使用メモリ | 12,416 KB |
最終ジャッジ日時 | 2024-06-25 20:18:06 |
合計ジャッジ時間 | 3,132 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 14 |
コンパイルメッセージ
Main.rb:13: warning: ambiguous first argument; put parentheses or a space even after `-' operator Syntax OK
ソースコード
a,b,c = gets.split.map &:to_iresult = []if c % a == 0 && c <= b thenresult << c / aendif (c + b) % a == 0 thenresult << (c + b) / aendif result.size == 0 thenputs -1elseputs resultend