結果
問題 | No.2194 兄弟の掛け引き |
ユーザー |
👑 |
提出日時 | 2023-01-25 16:09:04 |
言語 | Lua (LuaJit 2.1.1734355927) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 268 bytes |
コンパイル時間 | 49 ms |
コンパイル使用メモリ | 6,816 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-26 20:26:08 |
合計ジャッジ時間 | 779 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 14 |
ソースコード
a, b, c = io.read("*n", "*n", "*n")t = {}if c <= b thenif c % a == 0 thentable.insert(t, math.floor(c / a))endendif (c + b) % a == 0 thentable.insert(t, math.floor((c + b) / a))endif #t == 0 thenprint(-1)elseprint(table.concat(t, "\n"))end